diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-03-11 04:49:26 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-04-15 18:10:17 +0200 |
commit | 022333427a8aa4ccb318a9db90cea4e69ca1826b (patch) | |
tree | 9f3fad66840616cd281b449a99df4d30bfdfd6c2 /drivers/md/dm-sysfs.c | |
parent | dm: add full blk-mq support to request-based DM (diff) | |
download | linux-022333427a8aa4ccb318a9db90cea4e69ca1826b.tar.xz linux-022333427a8aa4ccb318a9db90cea4e69ca1826b.zip |
dm: optimize dm_mq_queue_rq to _not_ use kthread if using pure blk-mq
dm_mq_queue_rq() is in atomic context so care must be taken to not
sleep -- as such GFP_ATOMIC is used for the md->bs bioset allocations
and dm-mpath's call to blk_get_request(). In the future the bioset
allocations will hopefully go away (by removing support for partial
completions of bios in a cloned request).
Also prepare for supporting DM blk-mq ontop of old-style request_fn
device(s) if a new dm-mod 'use_blk_mq' parameter is set. The kthread
will still be used to queue work if blk-mq is used ontop of old-style
request_fn device(s).
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-sysfs.c')
0 files changed, 0 insertions, 0 deletions