]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: don't start current request if it would've merged with the previous
authorMike Snitzer <snitzer@redhat.com>
Wed, 25 Feb 2015 02:58:21 +0000 (21:58 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:03:50 +0000 (12:03 -0400)
commit043af3a02a8d66f1f3621f82762611f88ab696c9
tree1d41cba48b9e97e21d70d0629bde43c0664355ff
parent80d7c5a5bba9c1952a369b822f6b63029d2ffbc0
dm: don't start current request if it would've merged with the previous

Request-based DM's dm_request_fn() is so fast to pull requests off the
queue that steps need to be taken to promote merging by avoiding request
processing if it makes sense.

If the current request would've merged with previous request let the
current request stay on the queue longer.

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