OSDN Git Service

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)
commit7809167da5c86fd6bf309b33dee7a797e263342f
tree0bd8e12a83eec11bc783779f7f0409fbd0556cb1
parent04906b2f542c23626b0ef6219b808406f8dddbe9
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: f9afca4d367b ("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