From: Eduard Bloch <edi@gmx.de>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org, debburn-devel@lists.alioth.debian.org
Subject: Re: broken device locking, sg vs. sg_io on block devices
Date: Sat, 7 Apr 2007 13:21:32 +0200 [thread overview]
Message-ID: <20070407112131.GA10487@rotes76.wohnheim.uni-kl.de> (raw)
In-Reply-To: <20070331232002.7b478f37@the-village.bc.nu>
#include <hallo.h>
First, we (me and Thomas Schmidt) are working on a draft for a mandatory
locking scheme which will take care of the most racy situations even
without having a proper in-kernel solution. But you need to exlain some
things, otherwise we cannot rely on your words.
> (open has side effects relocking doesnt)
What exactly does that mean in our scope?
Can we do following without having side effects:
open("/dev/sr0",O_EXCL|O_RDWR); /* no matter what it returns */
fcntl(..., F_SETLK); /* no matter what it returns */
ioctl(f, SCSI_IOCTL_GET_IDLUN, &x);
ioctl(f, SCSI_IOCTL_GET_BUS_NUMBER, &jo);
Can you guarantee us that bit?
Or shall we really implement ugly workarounds to avoid every open call?
Note that "just do like UUCP guys" is not as easy or reliable as people
may pretend.
Eduard.
--
Naja, Garbage Collector eben. Holt den Müll sogar vom Himmel.
(Heise Trollforum über Java in der Flugzeugsteuerung)
next prev parent reply other threads:[~2007-04-07 11:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200703261811.21448.gerald@itzgrund.net>
2007-03-30 11:17 ` Eduard Bloch
2007-03-30 13:43 ` Christoph Hellwig
2007-03-30 14:21 ` Eduard Bloch
2007-03-30 18:10 ` Alan Cox
2007-03-31 17:07 ` Eduard Bloch
2007-03-31 22:20 ` Alan Cox
2007-03-31 22:40 ` Eduard Bloch
2007-04-01 0:14 ` Alan Cox
2007-04-01 2:34 ` Oleg Verych
2007-04-07 11:21 ` Eduard Bloch [this message]
2007-04-11 10:12 ` Eduard Bloch
2007-04-11 11:31 ` Alan Cox
2007-04-11 12:19 ` Eduard Bloch
2007-03-30 19:09 ` Jan Engelhardt
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=20070407112131.GA10487@rotes76.wohnheim.uni-kl.de \
--to=edi@gmx.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=debburn-devel@lists.alioth.debian.org \
--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®