]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
fs: add kiocb alloc cache flag
authorJens Axboe <axboe@kernel.dk>
Tue, 10 Aug 2021 15:29:55 +0000 (09:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:44:22 +0000 (13:44 -0600)
If this kiocb can safely use the polled bio allocation cache, then this
flag must be set. Generally this can be set for polled IO, where we will
not see IRQ completions of the request.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h

index 640574294216c03fb68876e0f3aa8cd7ee98e13a..0dcc5de779c94e5ae0d86c4d9d5bba0592a5334b 100644 (file)
@@ -319,6 +319,8 @@ enum rw_hint {
 /* iocb->ki_waitq is valid */
 #define IOCB_WAITQ             (1 << 19)
 #define IOCB_NOIO              (1 << 20)
+/* can use bio alloc cache */
+#define IOCB_ALLOC_CACHE       (1 << 21)
 
 struct kiocb {
        struct file             *ki_filp;