diff mbox

when and where does ep_poll_callback be called ?

Message ID 1363150852.13690.29.camel@edumazet-glaptop
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Eric Dumazet March 13, 2013, 5 a.m. UTC
On Mon, 2013-01-14 at 09:11 +0800, horseriver wrote:
> hi:
> 
> 
>    I'm studying the epoll module , I can not find ep_poll_callback be called somewhere .
>    
>   

Thats more a lkml question.

But you can figure it yourself :



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index 9fec183..c6e7490 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -928,6 +928,7 @@  static int ep_poll_callback(wait_queue_t *wait, unsigned mode, int sync, void *k
 	struct epitem *epi = ep_item_from_wait(wait);
 	struct eventpoll *ep = epi->ep;
 
+	WARN_ON_ONCE(1);
 	if ((unsigned long)key & POLLFREE) {
 		ep_pwq_from_wait(wait)->whead = NULL;
 		/*