[PATCH v8 3/7] io-uring: add busy poll timeout, prefer busy poll to io_wait_queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds the two fields busy poll timeout and prefer busy poll to the
io_wait_queue structure. They are used during the busy poll processing.

Signed-off-by: Stefan Roesch <shr@xxxxxxxxxxxx>
---
 io_uring/io_uring.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index 021f9af37c74..2e1b8de8505a 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -34,6 +34,10 @@ struct io_wait_queue {
 	unsigned nr_timeouts;
 	ktime_t timeout;
 
+#ifdef CONFIG_NET_RX_BUSY_POLL
+	unsigned int napi_busy_poll_to;
+	bool napi_prefer_busy_poll;
+#endif
 };
 
 static inline bool io_should_wake(struct io_wait_queue *iowq)
-- 
2.30.2




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux