]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: fix checking for REQ_FUA
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 22 Feb 2019 19:00:01 +0000 (20:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 21:03:03 +0000 (14:03 -0700)
commitc7b0c93f038a90e5dc31f018a8f7e0b9ced08b2e
tree49052810455b8c0a95a30f61fe0bcbf785d6f4a5
parentd1486bd6a23324e54f0f3ab9b124b45b9bb67b90
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>
drivers/block/null_blk_main.c