diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-02-25 02:49:18 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-04-15 18:10:13 +0200 |
commit | 9d1deb83d489364f8749a3a1ba1689efb07d94b0 (patch) | |
tree | 30ddc2eaf3ce455b7b6cf5d7a1959bb538f430da /drivers/md/dm.c | |
parent | dm: only run the queue on completion if congested or no requests pending (diff) | |
download | linux-9d1deb83d489364f8749a3a1ba1689efb07d94b0.tar.xz linux-9d1deb83d489364f8749a3a1ba1689efb07d94b0.zip |
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>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 7924c00e0716..6f854287384b 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1963,7 +1963,7 @@ static void dm_request_fn(struct request_queue *q) while (!blk_queue_stopped(q)) { rq = blk_peek_request(q); if (!rq) - goto delay_and_out; + goto out; /* always use block 0 to find the target for flushes for now */ pos = 0; |