@@ -403,7 +403,6 @@ struct io_ring_ctx {
403
403
struct wait_queue_head cq_wait ;
404
404
unsigned cq_extra ;
405
405
atomic_t cq_timeouts ;
406
- struct fasync_struct * cq_fasync ;
407
406
unsigned cq_last_tm_flush ;
408
407
} ____cacheline_aligned_in_smp ;
409
408
@@ -1614,10 +1613,8 @@ static void io_cqring_ev_posted(struct io_ring_ctx *ctx)
1614
1613
wake_up (& ctx -> sq_data -> wait );
1615
1614
if (io_should_trigger_evfd (ctx ))
1616
1615
eventfd_signal (ctx -> cq_ev_fd , 1 );
1617
- if (waitqueue_active (& ctx -> poll_wait )) {
1616
+ if (waitqueue_active (& ctx -> poll_wait ))
1618
1617
wake_up_interruptible (& ctx -> poll_wait );
1619
- kill_fasync (& ctx -> cq_fasync , SIGIO , POLL_IN );
1620
- }
1621
1618
}
1622
1619
1623
1620
static void io_cqring_ev_posted_iopoll (struct io_ring_ctx * ctx )
@@ -1631,10 +1628,8 @@ static void io_cqring_ev_posted_iopoll(struct io_ring_ctx *ctx)
1631
1628
}
1632
1629
if (io_should_trigger_evfd (ctx ))
1633
1630
eventfd_signal (ctx -> cq_ev_fd , 1 );
1634
- if (waitqueue_active (& ctx -> poll_wait )) {
1631
+ if (waitqueue_active (& ctx -> poll_wait ))
1635
1632
wake_up_interruptible (& ctx -> poll_wait );
1636
- kill_fasync (& ctx -> cq_fasync , SIGIO , POLL_IN );
1637
- }
1638
1633
}
1639
1634
1640
1635
/* Returns true if there are no backlogged entries after the flush */
@@ -9345,13 +9340,6 @@ static __poll_t io_uring_poll(struct file *file, poll_table *wait)
9345
9340
return mask ;
9346
9341
}
9347
9342
9348
- static int io_uring_fasync (int fd , struct file * file , int on )
9349
- {
9350
- struct io_ring_ctx * ctx = file -> private_data ;
9351
-
9352
- return fasync_helper (fd , file , on , & ctx -> cq_fasync );
9353
- }
9354
-
9355
9343
static int io_unregister_personality (struct io_ring_ctx * ctx , unsigned id )
9356
9344
{
9357
9345
const struct cred * creds ;
@@ -10145,7 +10133,6 @@ static const struct file_operations io_uring_fops = {
10145
10133
.mmap_capabilities = io_uring_nommu_mmap_capabilities ,
10146
10134
#endif
10147
10135
.poll = io_uring_poll ,
10148
- .fasync = io_uring_fasync ,
10149
10136
#ifdef CONFIG_PROC_FS
10150
10137
.show_fdinfo = io_uring_show_fdinfo ,
10151
10138
#endif
0 commit comments