File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include "notif.h"
1010#include "rsrc.h"
1111
12- void io_notif_tw_complete (struct io_kiocb * notif , struct io_tw_state * ts )
12+ static void io_notif_tw_complete (struct io_kiocb * notif , struct io_tw_state * ts )
1313{
1414 struct io_notif_data * nd = io_notif_to_data (notif );
1515
@@ -23,8 +23,8 @@ void io_notif_tw_complete(struct io_kiocb *notif, struct io_tw_state *ts)
2323 io_req_task_complete (notif , ts );
2424}
2525
26- static void io_tx_ubuf_complete (struct sk_buff * skb , struct ubuf_info * uarg ,
27- bool success )
26+ void io_tx_ubuf_complete (struct sk_buff * skb , struct ubuf_info * uarg ,
27+ bool success )
2828{
2929 struct io_notif_data * nd = container_of (uarg , struct io_notif_data , uarg );
3030 struct io_kiocb * notif = cmd_to_io_kiocb (nd );
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ struct io_notif_data {
2121};
2222
2323struct io_kiocb * io_alloc_notif (struct io_ring_ctx * ctx );
24- void io_notif_tw_complete (struct io_kiocb * notif , struct io_tw_state * ts );
24+ void io_tx_ubuf_complete (struct sk_buff * skb , struct ubuf_info * uarg ,
25+ bool success );
2526
2627static inline struct io_notif_data * io_notif_to_data (struct io_kiocb * notif )
2728{
@@ -33,11 +34,7 @@ static inline void io_notif_flush(struct io_kiocb *notif)
3334{
3435 struct io_notif_data * nd = io_notif_to_data (notif );
3536
36- /* drop slot's master ref */
37- if (refcount_dec_and_test (& nd -> uarg .refcnt )) {
38- notif -> io_task_work .func = io_notif_tw_complete ;
39- __io_req_task_work_add (notif , IOU_F_TWQ_LAZY_WAKE );
40- }
37+ io_tx_ubuf_complete (NULL , & nd -> uarg , true);
4138}
4239
4340static inline int io_notif_account_mem (struct io_kiocb * notif , unsigned len )
You can’t perform that action at this time.
0 commit comments