block: avoid setting nr_requests to current value
authorAleksei Zakharov <zakharov.a.g@yandex.ru>
Fri, 8 Feb 2019 16:14:05 +0000 (19:14 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Feb 2019 19:43:25 +0000 (12:43 -0700)
commite5fa81408fb43ebabde65938ef8b20ae879017e7
tree03db0911459410e6d675d08655f139cd1df19087
parentf25191bb322dec8fa2979ecb8235643aa42470e1
block: avoid setting nr_requests to current value

There's no reason to freeze queue and set nr_requests value
if current value is the same.

Signed-off-by: Aleksei Zakharov <zakharov.a.g@yandex.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c