projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3b6a8
)
null_blk: fix passing of REQ_FUA flag in null_handle_rq
author
Hou Pu
<houpu@bytedance.com>
Fri, 21 Aug 2020 08:34:42 +0000
(
04:34
-0400)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:28 +0000
(17:14 -0600)
REQ_FUA should be checked using rq->cmd_flags instead of req_op().
Fixes:
deb78b419dfda
("nullb: emulate cache")
Signed-off-by: Hou Pu <houpu@bytedance.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c
patch
|
blob
|
history
diff --git
a/drivers/block/null_blk_main.c
b/drivers/block/null_blk_main.c
index
47a9dad
..
d74443a
100644
(file)
--- a/
drivers/block/null_blk_main.c
+++ b/
drivers/block/null_blk_main.c
@@
-1147,7
+1147,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,
- r
eq_op(rq)
& REQ_FUA);
+ r
q->cmd_flags
& REQ_FUA);
if (err) {
spin_unlock_irq(&nullb->lock);
return err;