Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: andi@firstfloor.org, dgilbert@interlog.com,
	James.Bottomley@HansenPartnership.com, axboe@kernel.dk,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] [13/21] Use blk_q_mask/get_pages_mask in sg driver
Date: Mon, 17 Nov 2008 11:22:28 +0100	[thread overview]
Message-ID: <20081117102227.GG6703@one.firstfloor.org> (raw)
In-Reply-To: <20081117141240X.fujita.tomonori@lab.ntt.co.jp>

On Mon, Nov 17, 2008 at 02:11:51PM +0900, FUJITA Tomonori wrote:
> On Sun, 16 Nov 2008 23:17:22 +0100
> Andi Kleen <andi@firstfloor.org> wrote:
> 
> > On Sat, Nov 15, 2008 at 09:11:20PM -0500, Douglas Gilbert wrote:
> > > Andi Kleen wrote:
> > > >Instead of using GFP_DMA directly.
> > > >
> > > >Also I stubbed SG_SET_FORCE_LOW_DMA ioctls which don't make any sense
> > > >because the kernel should always use the correct values on its own.
> > > 
> > > You propose removing a define from a public interface and thereby
> > > might break existing code. A comment in sg.h might be appropriate.
> > 
> > Hmm, I assume those SG_SET_FORCE_* defines are only used 
> > in the kernel.
> 
> I don't think so. They are exported to userspace, the sg ioctl
> interface. There may be applications that use them.

I doubt it. For what would they use it? And when exactly
should an application know that some device has a 16MB
limit when the kernel driver doesn't know about that?

For me it looks more like a really old debugging interface.

> Well, I don't think that they are useful or a nice feature. They would
> become pointless when you finish your dma allocation rework. But I
> don't think that we can remove the existing API exported to userspace.

Ok I'll restore the defines. But readding the ioctls would
be messy. Do you really think that is needed? I would 
rather prefer to fix the driver to always GFP_DMA, but I am
not aware of any driver who needs it. Are you?

-Andi

  reply	other threads:[~2008-11-17 10:12 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15 23:11 [PATCH] [0/21] Remove isa_unchecked_dma and some more GFP_DMAs in the mid layer v5 Andi Kleen
2008-11-15 23:11 ` [PATCH] [1/21] Add the alloc/get_pages_mask calls Andi Kleen
2008-11-15 23:11 ` [PATCH] [2/21] Add blk_q_mask Andi Kleen
2008-11-16 14:21   ` James Bottomley
2008-11-16 17:40     ` Theodore Tso
2008-11-16 22:19     ` Andi Kleen
2008-11-15 23:11 ` [PATCH] [3/21] Pass gfp to scsi_allocate_command Andi Kleen
2008-11-16 15:29   ` James Bottomley
2008-11-16 22:21     ` Andi Kleen
2008-11-15 23:11 ` [PATCH] [4/21] Add sense_buffer_isa to host template Andi Kleen
2008-11-15 23:11 ` [PATCH] [5/21] Remove unchecked_isa in BusLogic Andi Kleen
2008-11-16 15:46   ` James Bottomley
2008-11-16 22:31     ` Andi Kleen
2008-11-17 11:03       ` James Bottomley
2008-11-15 23:11 ` [PATCH] [6/21] Remove unchecked_isa_dma in advansys.c Andi Kleen
2008-11-16 16:56   ` James Bottomley
2008-11-16 22:33     ` Andi Kleen
2008-11-17 11:32       ` James Bottomley
2008-11-15 23:11 ` [PATCH] [7/21] Remove unchecked_isa_dma in gdth Andi Kleen
2008-11-15 23:11 ` [PATCH] [8/21] Remove unchecked_isa_dma in eata.c Andi Kleen
2008-11-15 23:11 ` [PATCH] [9/21] Remove unchecked_isa_dma in aha1542 Andi Kleen
2008-11-15 23:11 ` [PATCH] [10/21] Remove unchecked_isa_dma in aha152x/wd7000/sym53c416/u14-34f/NCR53c406a Andi Kleen
2008-11-15 23:11 ` [PATCH] [11/21] Remove GFP_DMA uses in st/osst Andi Kleen
2008-11-15 23:11 ` [PATCH] [12/21] Remove unchecked_isa_dma support for hostdata Andi Kleen
2008-11-15 23:11 ` [PATCH] [13/21] Use blk_q_mask/get_pages_mask in sg driver Andi Kleen
2008-11-16  2:11   ` Douglas Gilbert
2008-11-16 22:17     ` Andi Kleen
2008-11-17  5:11       ` FUJITA Tomonori
2008-11-17 10:22         ` Andi Kleen [this message]
2008-11-17 11:07           ` FUJITA Tomonori
2008-11-17 11:23             ` Andi Kleen
2008-11-17 11:22               ` FUJITA Tomonori
2008-11-17 11:43                 ` Andi Kleen
2008-11-17 11:47                   ` FUJITA Tomonori
2008-11-15 23:11 ` [PATCH] [14/21] Rely on block layer bouncing for ISA DMA devices scanning Andi Kleen
2008-11-15 23:11 ` [PATCH] [15/21] Don't disable direct_io for unchecked_isa_dma in st.c Andi Kleen
2008-11-15 23:11 ` [PATCH] [16/21] Remove automatic block layer bouncing for unchecked_isa_dma Andi Kleen
2008-11-15 23:11 ` [PATCH] [17/21] Remove GFP_DMA use in sr.c Andi Kleen
2008-11-15 23:11 ` [PATCH] [18/21] Remove unchecked_isa_dma from sysfs Andi Kleen
2008-11-15 23:11 ` [PATCH] [19/21] Switch to a single SCSI command pool Andi Kleen
2008-11-15 23:11 ` [PATCH] [20/21] Finally kill unchecked_isa_dma Andi Kleen
2008-11-15 23:11 ` [PATCH] [21/21] Convert DMA buffers in ch.c to allocate via the block layer Andi Kleen

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=20081117102227.GG6703@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=axboe@kernel.dk \
    --cc=dgilbert@interlog.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --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