diff options
| author | Ming Lei <[email protected]> | 2021-11-12 12:47:15 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-11-12 16:31:13 +0000 |
| commit | b637108a4022951dcc71b672bd101ebe24ad26d5 (patch) | |
| tree | 5591ded34bae59f95ab5f95e8c6ff7b3b2827281 /drivers/fpga/fpga-bridge.c | |
| parent | blkcg: Remove extra blkcg_bio_issue_init (diff) | |
| download | kernel-b637108a4022951dcc71b672bd101ebe24ad26d5.tar.gz kernel-b637108a4022951dcc71b672bd101ebe24ad26d5.zip | |
blk-mq: fix filesystem I/O request allocation
submit_bio_checks() may update bio->bi_opf, so we have to initialize
blk_mq_alloc_data.cmd_flags with bio->bi_opf after submit_bio_checks()
returns when allocating new request.
In case of using cached request, fallback to allocate new request if
cached rq isn't compatible with the incoming bio, otherwise change
rq->cmd_flags with incoming bio->bi_opf.
Fixes: 900e080752025f00 ("block: move queue enter logic into blk_mq_submit_bio()")
Reported-by: Geert Uytterhoeven <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
