mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
null_blk: fix checking for REQ_FUA
null_handle_bio() erroneously uses the bio_op macro which masks respective request flag bits including REQ_FUA out thus failing the check. Fix by checking bio->bi_opf directly. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
4d7c1d3fd7
commit
bf7c7a0401
@ -1104,7 +1104,7 @@ static int null_handle_bio(struct nullb_cmd *cmd)
|
||||
len = bvec.bv_len;
|
||||
err = null_transfer(nullb, bvec.bv_page, len, bvec.bv_offset,
|
||||
op_is_write(bio_op(bio)), sector,
|
||||
bio_op(bio) & REQ_FUA);
|
||||
bio->bi_opf & REQ_FUA);
|
||||
if (err) {
|
||||
spin_unlock_irq(&nullb->lock);
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user