dm: don't schedule delayed run of the queue if nothing to do
authorMike Snitzer <snitzer@redhat.com>
Wed, 25 Feb 2015 01:49:18 +0000 (20:49 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 15 Apr 2015 16:10:13 +0000 (12:10 -0400)
commit9d1deb83d489364f8749a3a1ba1689efb07d94b0
tree30ddc2eaf3ce455b7b6cf5d7a1959bb538f430da
parent9a0e609e3fd8a95c96629b9fbde6b8c5b9a1456a
dm: don't schedule delayed run of the queue if nothing to do

In request-based DM's dm_request_fn(), if blk_peek_request() returns
NULL just return.  Avoids unnecessary blk_delay_queue().

Reported-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c