netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: horseriver <horserivers@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: when and where does ep_poll_callback be called ?
Date: Wed, 13 Mar 2013 06:00:52 +0100	[thread overview]
Message-ID: <1363150852.13690.29.camel@edumazet-glaptop> (raw)
In-Reply-To: <20130114011115.GG2743@debian.localdomain>

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 :

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;
 		/*

      parent reply	other threads:[~2013-03-13  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14  1:11 when and where does ep_poll_callback be called ? horseriver
2013-01-14 16:35 ` Randy Dunlap
2013-01-14  7:52   ` horseriver
2013-03-13  5:00 ` Eric Dumazet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1363150852.13690.29.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=horserivers@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).