From: Nish Aravamudan <nish.aravamudan@gmail.com>
To: Richard Stover <richard@ucolick.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: waiting process in procfs read
Date: Fri, 26 Aug 2005 09:41:29 -0700 [thread overview]
Message-ID: <29495f1d050826094144ef2998@mail.gmail.com> (raw)
In-Reply-To: <29495f1d05082609407c147df7@mail.gmail.com>
On 8/26/05, Nish Aravamudan <nish.aravamudan@gmail.com> wrote:
> On 8/26/05, Richard Stover <richard@ucolick.org> wrote:
> > I submitted this as a bugzilla kernel bug report but was directed here.
> > Perhaps someone can help me.
> >
> > I have a device driver developed with 2.4 kernels. I've ported
> > it to the 2.6 kernel (FC3) and it all works fine except for one
> > aspect of procfs.
>
> <snip>
>
> > THE PROBLEM: In FC3 (2.6.11-13_FC3) the reading process blocks but it never
> > wakes up.
>
> <snip>
>
> > if (offset == 0) {
> >
> > printk("####%s waiting event %x\n",__FUNCTION__,
> > (unsigned int)&dev->read_proc_wait);
> >
> > wait_event_interruptible(dev->read_proc_wait,(offset != 0));
> > printk("####%s WOKE UP\n",__FUNCTION__);
>
> <snip>
>
> > /* Wake up anyone waiting on reading /proc/readXw */
> > printk(KERN_INFO "#### waking up anyone waiting on read_proc_wait event %x\n",
> > (unsigned int)&dev->read_proc_wait);
> >
> > wake_up_interruptible(&dev->read_proc_wait);
>
> Your symptoms indicate to me that the "event" in
> wait_event_interruptible() has not been satisifed, and thus the
> (potentially) infinite loop in wait_event_interruptible() is
> continuing, e.g. event still is 0. A signal (as you've specified
::sigh::, offset still is 0, not event :)
Thanks,
Nish
prev parent reply other threads:[~2005-08-26 16:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-26 15:59 waiting process in procfs read Richard Stover
2005-08-26 16:40 ` Nish Aravamudan
2005-08-26 16:41 ` Nish Aravamudan [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=29495f1d050826094144ef2998@mail.gmail.com \
--to=nish.aravamudan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=richard@ucolick.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