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>
Wed, 15 Apr 2015 16:10:14 +0000 (12:10 -0400)
commitde3ec86dff160d35c817bb70eeaeff6e392f44a4
treeccb44d9f929f34bb8cae746252e3a40246c9f895
parentd548b34b062b60b4f4df295a0b4823dfda1f1fc4
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