aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2023-01-14 10:01:00 +0400
committerJoursoir <chat@joursoir.net>2023-01-16 13:31:46 +0400
commitd11b16a6dd59145a5fc43017b39ff0fb5f7788fc (patch)
tree5251e4ff65e2cfa4891c19a05a8f402562428976
parent8449debb60f91a5761cd70f391f96f000d19a9ae (diff)
downloadsbdd-d11b16a6dd59145a5fc43017b39ff0fb5f7788fc.tar.gz
sbdd-d11b16a6dd59145a5fc43017b39ff0fb5f7788fc.tar.bz2
sbdd-d11b16a6dd59145a5fc43017b39ff0fb5f7788fc.zip
set flags to ensure that data isn't cached by the device
Task: 1
-rw-r--r--sbdd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbdd.c b/sbdd.c
index 7d4a64e..2b575b4 100644
--- a/sbdd.c
+++ b/sbdd.c
@@ -105,6 +105,7 @@ static void sbdd_xfer_bio(struct bio *bio)
}
bio_set_dev(bio_clone, __sbdd.bdev);
+ bio_clone->bi_opf |= REQ_PREFLUSH | REQ_FUA;
bio_clone->bi_private = io_bio;
bio_clone->bi_end_io = io_end_bio;