commit | 5f480b1a6325748f26999e2151c9912e00cc4087 | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@redhat.com> | Sat Nov 27 00:19:43 2021 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Nov 29 06:41:23 2021 -0700 |
tree | 4ea5aa185f7981509c0ab0e7c97d12504c2e77ac | |
parent | c65e6fd460b4df796ecd6ea22e132076ed1f2820 [diff] |
blk-mq: use bio->bi_opf after bio is checked bio->bi_opf isn't finalized before checking the bio, so use it after submit_bio_checks() returns. Fixes: 5b13bc8a3fd5 ("blk-mq: cleanup request allocation") Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>