]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't lose track of REQ_INTEGRITY flag
authorMing Lei <ming.lei@redhat.com>
Wed, 16 Jan 2019 11:08:15 +0000 (19:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Jan 2019 14:28:10 +0000 (07:28 -0700)
commit9a1de334053e4a5bfb27689385c4a4e91dd6f244
tree0bd8e12a83eec11bc783779f7f0409fbd0556cb1
parent5ca87c96e552a05a30c668b31c7c411fd10264bf
block: don't lose track of REQ_INTEGRITY flag

We need to pass bio->bi_opf after bio intergrity preparing, otherwise
the flag of REQ_INTEGRITY may not be set on the allocated request, then
breaks block integrity.

Fixes: d3128ac800ee ("blk-mq: pass in request/bio flags to queue mapping")
Cc: Hannes Reinecke <hare@suse.com>
Cc: Keith Busch <keith.busch@intel.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c