File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 9
9
#include "notif.h"
10
10
#include "rsrc.h"
11
11
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 )
13
13
{
14
14
struct io_notif_data * nd = io_notif_to_data (notif );
15
15
@@ -23,8 +23,8 @@ void io_notif_tw_complete(struct io_kiocb *notif, struct io_tw_state *ts)
23
23
io_req_task_complete (notif , ts );
24
24
}
25
25
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 )
28
28
{
29
29
struct io_notif_data * nd = container_of (uarg , struct io_notif_data , uarg );
30
30
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 {
21
21
};
22
22
23
23
struct 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 );
25
26
26
27
static inline struct io_notif_data * io_notif_to_data (struct io_kiocb * notif )
27
28
{
@@ -33,11 +34,7 @@ static inline void io_notif_flush(struct io_kiocb *notif)
33
34
{
34
35
struct io_notif_data * nd = io_notif_to_data (notif );
35
36
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);
41
38
}
42
39
43
40
static inline int io_notif_account_mem (struct io_kiocb * notif , unsigned len )
You can’t perform that action at this time.
0 commit comments