[PATCH 1/4] block: add blk_queue_fua() helper function
Tim Gardner
tim.gardner at canonical.com
Fri Mar 5 17:40:48 UTC 2021
From: Dave Chinner <dchinner at redhat.com>
BugLink: https://bugs.launchpad.net/bugs/1917918
So we can check FUA support status from the iomap direct IO code.
Reviewed-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Dave Chinner <dchinner at redhat.com>
Signed-off-by: Jens Axboe <axboe at kernel.dk>
(cherry picked from commit 0ce9144471de9ee09306ca0127e7cd27521ccc3f)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
Tested-by: Tim Gardner <tim.gardner at canonical.com>
---
include/linux/blkdev.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 9eb91f690322..cbf8a17ae692 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -753,6 +753,7 @@ static inline void queue_flag_clear(unsigned int flag, struct request_queue *q)
#define blk_queue_quiesced(q) test_bit(QUEUE_FLAG_QUIESCED, &(q)->queue_flags)
#define blk_queue_preempt_only(q) \
test_bit(QUEUE_FLAG_PREEMPT_ONLY, &(q)->queue_flags)
+#define blk_queue_fua(q) test_bit(QUEUE_FLAG_FUA, &(q)->queue_flags)
extern int blk_set_preempt_only(struct request_queue *q);
extern void blk_clear_preempt_only(struct request_queue *q);
--
2.17.1
More information about the kernel-team
mailing list