Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm: add support for REQ_NOWAIT to various targets

commit 021a24460dc2 ("block: add QUEUE_FLAG_NOWAIT") added a new queue
flag QUEUE_FLAG_NOWAIT to advertise if the bdev supports handling of
REQ_NOWAIT or not. DM core supports stacking QUEUE_FLAG_NOWAIT since
commit 6abc49468eea ("dm: add support for REQ_NOWAIT and enable it for
linear target"), in which only dm-linear enabled it.

Update others DM targets, which just do simple remapping, to enable
support for REQ_NOWAIT.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by

Jeffle Xu and committed by
Mike Snitzer
410fe220 298fb372

+4 -1
+1 -1
drivers/md/dm-stripe.c
··· 496 496 static struct target_type stripe_target = { 497 497 .name = "striped", 498 498 .version = {1, 6, 0}, 499 - .features = DM_TARGET_PASSES_INTEGRITY, 499 + .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT, 500 500 .module = THIS_MODULE, 501 501 .ctr = stripe_ctr, 502 502 .dtr = stripe_dtr,
+1
drivers/md/dm-switch.c
··· 550 550 static struct target_type switch_target = { 551 551 .name = "switch", 552 552 .version = {1, 1, 0}, 553 + .features = DM_TARGET_NOWAIT, 553 554 .module = THIS_MODULE, 554 555 .ctr = switch_ctr, 555 556 .dtr = switch_dtr,
+1
drivers/md/dm-unstripe.c
··· 178 178 static struct target_type unstripe_target = { 179 179 .name = "unstriped", 180 180 .version = {1, 1, 0}, 181 + .features = DM_TARGET_NOWAIT, 181 182 .module = THIS_MODULE, 182 183 .ctr = unstripe_ctr, 183 184 .dtr = unstripe_dtr,
+1
drivers/md/dm-zero.c
··· 59 59 static struct target_type zero_target = { 60 60 .name = "zero", 61 61 .version = {1, 1, 0}, 62 + .features = DM_TARGET_NOWAIT, 62 63 .module = THIS_MODULE, 63 64 .ctr = zero_ctr, 64 65 .map = zero_map,