From: Jens Axboe <axboe@suse.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Ben Collins <bcollins@ubuntu.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH rc6] block: Fix CDROMEJECT to work in more cases
Date: Tue, 20 Dec 2005 18:49:48 +0100 [thread overview]
Message-ID: <20051220174948.GP3734@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0512200930490.4827@g5.osdl.org>
On Tue, Dec 20 2005, Linus Torvalds wrote:
>
>
> On Mon, 19 Dec 2005, Ben Collins wrote:
> >
> > This changes the request to a READ instead of WRITE. Also adds and calls
> > blk_send_allow_medium_removal() for CDROMEJECT case.
>
> Can you tell why it also does that START_STOP/1 thing? That looks a bit
> strange.
I still think that is weird and not something that should be merged. The
0x01 bit means load the tray and read TOC.
> Also, can somebody go through the READ/WRITE difference for me for a
> zero-length command? If the _only_ difference is a protection one (WRITE
> commands need write permissions), then I'm ok with this (I think it's
> very reasonable that somebody who can read a cd-rom can also eject it),
> but if there's some SCSI layer logic that says "writes cannot have length
> 0", then I think that's a bug.
It has no logical implications other than from what pool it allocates,
and we've always used the WRITE pool for these requests. There's no
protection implications.
WRITEs cannot have length 0, and READs cannot as well. Since it's just
one bit for direction, those are the rules.
--
Jens Axboe
next prev parent reply other threads:[~2005-12-20 17:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 19:50 [PATCH rc6] block: Fix CDROMEJECT to work in more cases Ben Collins
2005-12-20 17:34 ` Linus Torvalds
2005-12-20 17:49 ` Jens Axboe [this message]
2005-12-20 18:08 ` Linus Torvalds
2005-12-20 18:38 ` Jens Axboe
2005-12-20 18:53 ` Linus Torvalds
2005-12-20 19:08 ` Jens Axboe
2005-12-20 20:38 ` Ben Collins
2005-12-20 20:53 ` Jens Axboe
2005-12-20 21:46 ` Ben Collins
2005-12-21 7:04 ` Jens Axboe
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=20051220174948.GP3734@suse.de \
--to=axboe@suse.de \
--cc=bcollins@ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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