From: Teemu Koponen <tkoponen@iki.fi>
To: linux-kernel@vger.kernel.org
Subject: Opening of blocking FIFOs not reliable?
Date: Fri, 12 Aug 2005 20:18:59 -0700 [thread overview]
Message-ID: <c10854018590b2287bc64888d842a4ac@iki.fi> (raw)
Hi,
Opening a FIFO for WR_ONLY should release a previously blocked RD_ONLY
open. I suspect this is not guaranteed on a heavily loaded Linux box.
Consider fs/fifo.c (of 2.6.13-rc6-git4) and its wait_for_partner() and
wake_up_partner() functions. I think wait_for_partner()'s while loop
never exits, *iff* the writer, after opening the FIFO, closes it before
the reader gets scheduled. Shouldn't the writer's open() block until
the reader's open() is done?
Teemu
--
next reply other threads:[~2005-08-13 3:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-13 3:18 Teemu Koponen [this message]
2005-08-14 0:49 ` Alan Cox
2005-08-14 10:15 Manfred Spraul
2005-08-14 10:40 ` Teemu Koponen
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=c10854018590b2287bc64888d842a4ac@iki.fi \
--to=tkoponen@iki.fi \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®