[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815142034.1561661-1-lizetao1@huawei.com>
Date: Thu, 15 Aug 2024 22:20:34 +0800
From: Li Zetao <lizetao1@...wei.com>
To: <kent.overstreet@...ux.dev>
CC: <lizetao1@...wei.com>, <linux-bcachefs@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH -next] bcachefs: support iopoll method
When bcachefs uses io_uring, implement the iopoll method to support
IORING_SETUP_IOPOLL.
Signed-off-by: Li Zetao <lizetao1@...wei.com>
---
fs/bcachefs/fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
index c50457ba808d..c97bc94fcb83 100644
--- a/fs/bcachefs/fs.c
+++ b/fs/bcachefs/fs.c
@@ -1213,6 +1213,7 @@ static const struct file_operations bch_file_operations = {
.llseek = bch2_llseek,
.read_iter = bch2_read_iter,
.write_iter = bch2_write_iter,
+ .iopoll = iocb_bio_iopoll,
.mmap = bch2_mmap,
.get_unmapped_area = thp_get_unmapped_area,
.fsync = bch2_fsync,
--
2.34.1
Powered by blists - more mailing lists