mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
null_blk: fix passing of REQ_FUA flag in null_handle_rq
[ Upstream commit2d62e6b038] REQ_FUA should be checked using rq->cmd_flags instead of req_op(). Fixes:deb78b419d("nullb: emulate cache") Signed-off-by: Hou Pu <houpu@bytedance.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
88994acafd
commit
2fc8fa50eb
@@ -1072,7 +1072,7 @@ static int null_handle_rq(struct nullb_cmd *cmd)
|
||||
len = bvec.bv_len;
|
||||
err = null_transfer(nullb, bvec.bv_page, len, bvec.bv_offset,
|
||||
op_is_write(req_op(rq)), sector,
|
||||
req_op(rq) & REQ_FUA);
|
||||
rq->cmd_flags & REQ_FUA);
|
||||
if (err) {
|
||||
spin_unlock_irq(&nullb->lock);
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user