]> 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)
commit7779e239f63c4ee80b4baa4803e8d444388b26b5
tree0bd8e12a83eec11bc783779f7f0409fbd0556cb1
parent395795d9593bd660b7770d9aacba6fb9caedada2
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: 1f972e50ed1a ("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