diff options
author | Joursoir <chat@joursoir.net> | 2023-01-14 10:01:00 +0400 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2023-01-16 13:31:46 +0400 |
commit | d11b16a6dd59145a5fc43017b39ff0fb5f7788fc (patch) | |
tree | 5251e4ff65e2cfa4891c19a05a8f402562428976 | |
parent | 8449debb60f91a5761cd70f391f96f000d19a9ae (diff) | |
download | sbdd-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |