blk-mq: don't commit_rqs() if none were queued
authorKeith Busch <kbusch@kernel.org>
Mon, 6 Apr 2020 18:13:48 +0000 (03:13 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Apr 2020 19:43:56 +0000 (13:43 -0600)
commit536167d47ade11a5540b4b1a7125308b1641da7a
treec6f6d8d729c0a6dc01880e56e3969ca6f013fbe2
parentc52abf563049e787c1341cdf15c7dbe1bfbc951b
blk-mq: don't commit_rqs() if none were queued

Unburden the drivers from checking if a call to commit_rqs() is valid by
not calling it when there are no requests to commit.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c