From: Neil Brown <neilb@suse.de>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
LKML <linux-kernel@vger.kernel.org>,
Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: [PATCH] sysfs poll should keep the poll rule of normal regular file.
Date: Thu, 9 Apr 2009 16:05:55 +1000 [thread overview]
Message-ID: <18909.36931.482484.941387@notabene.brown> (raw)
In-Reply-To: message from KOSAKI Motohiro on Thursday April 9
On Thursday April 9, kosaki.motohiro@jp.fujitsu.com wrote:
> > On Wednesday April 8, kosaki.motohiro@jp.fujitsu.com wrote:
> > > Because Ruby (the scripting language) VM assume select system-call against regular file don't block.
> > > (POSIX gurantee it.)
> > > But sysfs_poll() don't keep this rule although sysfs file can read and write always.
> >
> > It would be nice to include a reference to where POSIX (or SUS)
> > guarantees it - though I suspect you are right.
>
> Oh, very good opinion.
>
> following explanation is better?
>
> poll is requireed "Regular files shall always poll TRUE for reading and
> writing." by SUSv3.
> see http://www.opengroup.org/onlinepubs/009695399/functions/poll.html
>
Yes, that's excellent, thanks.
NeilBrown
prev parent reply other threads:[~2009-04-09 6:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 8:43 KOSAKI Motohiro
2009-04-09 0:15 ` Neil Brown
2009-04-09 0:26 ` KOSAKI Motohiro
2009-04-09 4:53 ` [PATCH v2 1/2] sysfs poll keep the poll rule of " KOSAKI Motohiro
2009-04-09 4:57 ` [PATCH v2 2/2] mounts_poll() make consistent to mdstat_poll KOSAKI Motohiro
2009-04-09 6:05 ` Neil Brown [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=18909.36931.482484.941387@notabene.brown \
--to=neilb@suse.de \
--cc=gregkh@suse.de \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/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
all inboxes | Powered by JetHome®