From: Ulrich Drepper <drepper@redhat.com>
To: Michael Kerrisk <mtk.manpages@googlemail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
David Miller <davem@davemloft.net>,
Davide Libenzi <davidel@xmailserver.org>,
Alan Cox <alan@redhat.com>, Jakub Jelinek <jakub@redhat.com>,
lkml <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
netdev <netdev@vger.kernel.org>,
Roland McGrath <roland@redhat.com>,
Oleg Nesterov <oleg@tv-sign.ru>, Christoph Hellwig <hch@lst.de>
Subject: Re: sys_paccept: disable paccept() until API design is resolved
Date: Tue, 16 Sep 2008 16:17:25 -0700 [thread overview]
Message-ID: <48D03E85.9030808@redhat.com> (raw)
In-Reply-To: <48CFA10D.2010106@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Kerrisk wrote:
> The patch below disables the new sys_paccept() for now. Please
> apply for 2.6.27-rc, so that we do not release this API into
> the wild before a conclusion has been reached about its design.
There is no reason for that.
> The reasons for disabling paccept() are as follows:
>
> * The API is more complex than needed. There is AFAICS no demonstrated
> use case that the sigset argument of this syscall serves that
> couldn't equally be served by the use of pselect/ppoll/epoll_pwait +
It would unnecessarily require programs to be changed. I've explained
that programs cannot efficiently use accept() and poll() when multiple
threads are involved. This means in these situations you'll find a
single thread handling only the accept() calls.
> * The use of a sigset argument is not consistent with other I/O APIs
> that can block on a single file descriptor (e.g., read(), recv(),
> connect()).
This is because none of the other interfaces had (so far) be revised.
With this flawed argumentation you'd prevent any program ever to be made.
> * The behavior of paccept() when interrupted by a signal is IMO
> strange:
You use your own opinion as the deciding factor? The behavior differs
from other uses but is consistent with the accept() behavior.
> I believe that instead, a simpler API, consistent with Ulrich's
> other recent additions, is preferable:
>
> accept4(int fd, struct sockaddr *sa, socklen_t *salen, ind flags);
The signal set wasn't actually my idea. See:
http://marc.info/?l=linux-kernel&m=120909788728078&w=2
> At this point, I am hoping we either will get a counter-argument
> from Ulrich about why we really do need paccept()'s sigset argument,
> or that he will resubmit the original accept4() patch.
I have explained the need already. you just chose to ignore it.
- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkjQPoQACgkQ2ijCOnn/RHTNZwCfaXdw5Yhy/chAUMqR2kZE8Rsm
wzUAnA7PtvODGyAMeahl44+mqasqGS1U
=Gh2E
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-09-16 23:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 12:05 sys_paccept: disable paccept() until API design is resolved Michael Kerrisk
2008-09-16 13:04 ` Oleg Nesterov
2008-09-16 23:17 ` Ulrich Drepper [this message]
2008-09-17 0:24 ` Michael Kerrisk
2008-09-17 16:46 ` Evgeniy Polyakov
2008-09-17 1:22 ` Nick Piggin
2008-09-17 6:50 ` Rémi Denis-Courmont
2008-09-17 14:30 ` Oleg Nesterov
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=48D03E85.9030808@redhat.com \
--to=drepper@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=alan@redhat.com \
--cc=davem@davemloft.net \
--cc=davidel@xmailserver.org \
--cc=hch@lst.de \
--cc=jakub@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk.manpages@googlemail.com \
--cc=netdev@vger.kernel.org \
--cc=oleg@tv-sign.ru \
--cc=roland@redhat.com \
--cc=torvalds@linux-foundation.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).