]> git.baikalelectronics.ru Git - kernel.git/commit
dm: remove request-based logic from make_request_fn wrapper
authorMike Snitzer <snitzer@redhat.com>
Mon, 23 Feb 2015 22:56:37 +0000 (17:56 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 15 Apr 2015 16:08:48 +0000 (12:08 -0400)
commit6162ed28d138af839ea6bf04522e38aedc3226ae
tree32687e6236717b6def6a81435c944473e6143886
parenta6c3be7bf4d558842bf9fbc43f129fb965d8970d
dm: remove request-based logic from make_request_fn wrapper

The old dm_request() method used for q->make_request_fn had a branch for
request-based DM support but it isn't needed given that
dm_init_request_based_queue() sets it to the standard blk_queue_bio()
anyway.

Cleanup dm_init_md_queue() to be DM device-type agnostic and have
dm_setup_md_queue() properly finish queue setup based on DM device-type
(bio-based vs request-based).

A followup block patch can be made to remove the export for
blk_queue_bio() now that DM no longer calls it directly.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c