From: Christoph Hellwig <hch@infradead.org>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: hch@infradead.org, linux-scsi@vger.kernel.org, dougg@torque.net,
jens.axboe@oracle.com
Subject: Re: [PATCH 1/3] block: export blk_verify_command for SG v4
Date: Tue, 2 Jan 2007 15:20:05 +0000 [thread overview]
Message-ID: <20070102152005.GA21427@infradead.org> (raw)
In-Reply-To: <200701021502.l02F2MI9019472@r-dd.iij4u.or.jp>
On Wed, Jan 03, 2007 at 12:02:20AM +0900, FUJITA Tomonori wrote:
> > > blk_fill_sghdr_rq doesn't work for SG v4 so verify_command needed to
> > > be exported.
> >
> > So fixup blk_fill_sghdr_rq to deal with SG v4 aswell. We really
> > need to support all SGv4 features in the core code - bsg should
> > only be a small wrapper around core functionality at the end.
>
> Should blk_fill_sghdr_rq take cmd pointer, cmd_len, timeout, etc
> instead of sg_io_hdr structure?
Yes, that's what I meant. But now that I actually took a look at
blk_fill_sghdr_rq again that doesn't make a lot of sense anymore :)
We probably should have blk_fill_sghdrv3_rq and blk_fill_sghdrv4_rq
in core code instead.
> > And while you're touching this code, is there any chance you could
> > unifity the command permission tables for the block layer code and
> > the sg driver? This has been long overdue.
>
> No problem.
>
> You refer to unifying allow_ops in drivers/scsi/sg.c and
> blk_verify_command in block/scsi_ioctl.c, right?
Yes.
> > doug has a nice document somewhere that documents the differences
> > between command allowances for the block layer vs the sg driver.
> > Please go through these and take the more resonable version for
> > each command.
>
> SCSI command permissions:
>
> http://sg.torque.net/sg/sg_io.html
Exactly, that one.
> You mean that the sg driver and the block layer code share the same
> tables (might break some user-space code)?
I don't really see it that way. Eiter the more relaxed of the two
permissions was wrong in which case we need to fix. Or it was okay
and we should support it generally.
prev parent reply other threads:[~2007-01-02 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-15 15:18 [PATCH 1/3] block: export blk_verify_command for SG v4 FUJITA Tomonori
2007-01-02 11:49 ` Christoph Hellwig
2007-01-02 15:02 ` FUJITA Tomonori
2007-01-02 15:20 ` Christoph Hellwig [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=20070102152005.GA21427@infradead.org \
--to=hch@infradead.org \
--cc=dougg@torque.net \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@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