login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __scsi_alloc_queue
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
FUJITA Tomonori <tomof@...>
To: <jens.axboe@...>
Cc: <tomof@...>, <jeff@...>, <akpm@...>, <linux-kernel@...>, <linux-scsi@...>, <James.Bottomley@...>, <fujita.tomonori@...>
Subject:
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __scsi_alloc_queue
Date: Wednesday, October 24, 2007 - 10:36 am
On Wed, 24 Oct 2007 16:28:11 +0200 Jens Axboe <jens.axboe@oracle.com> wrote:
quoted text
> On Wed, Oct 24 2007, FUJITA Tomonori wrote: > > On Wed, 24 Oct 2007 07:39:16 -0400 > > Jeff Garzik <jeff@garzik.org> wrote: > > > > > FUJITA Tomonori wrote: > > > > request_queue and device struct must have the same value of a segment > > > > size limit. This patch adds blk_queue_segment_boundary in > > > > __scsi_alloc_queue so LLDs don't need to call both > > > > blk_queue_segment_boundary and set_dma_max_seg_size. A LLD can change > > > > the default value (64KB) can call device_dma_parameters accessors like > > > > pci_set_dma_max_seg_size when allocating scsi_host. > > > > > > > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> > > > > --- > > > > drivers/scsi/scsi_lib.c | 3 +++ > > > > 1 files changed, 3 insertions(+), 0 deletions(-) > > > > > > > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > > > > index 61fdaf0..23a30ab 100644 > > > > --- a/drivers/scsi/scsi_lib.c > > > > +++ b/drivers/scsi/scsi_lib.c > > > > @@ -1645,6 +1645,7 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, > > > > request_fn_proc *request_fn) > > > > { > > > > struct request_queue *q; > > > > + struct device *dev = shost->shost_gendev.parent; > > > > > > > > q = blk_init_queue(request_fn, NULL); > > > > if (!q) > > > > @@ -1673,6 +1674,8 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, > > > > blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); > > > > blk_queue_segment_boundary(q, shost->dma_boundary); > > > > > > > > + blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); > > > > + > > > > > > it would be nice to have something more general that's useable in > > > drivers/block/sx8.c (for example), something like > > > > > > static inline void > > > dev_blk_associate(struct device *dev, request_queue *q) > > > { > > > blk_queue_max_segment_size(q, > > > dma_get_max_seg_size(dev)); > > > } > > > > > > still, I will ACK the above patch (#9) in case you wish that to become a > > > future cleanup, or others dislike this suggestion > > > > Yeah, I thought about something like that. But I can't find many > > non-scsi drivers (ide, sx8, mmc/card/, anymore?) doing dma and having > > the restrictions so I just call blk_queue_max_segment_size here. > > > > Either is ok with me. I'll modify the patch if Jens prefers such > > function. Jens? > > If there's a use for it, sure.
Ok, I'll update the patch and add some patches for non-scsi drivers. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH -mm 0/11] fix iommu sg merging problem
, FUJITA Tomonori
, (Wed Oct 24, 6:47 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem
, Jens Axboe
, (Wed Oct 24, 9:24 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem
, Jeff Garzik
, (Wed Oct 24, 7:40 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem
, FUJITA Tomonori
, (Wed Oct 24, 10:32 am)
[PATCH -mm 01/11] add device_dma_parameters structure
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 01/11] add device_dma_parameters structure
, Jeff Garzik
, (Wed Oct 24, 7:33 am)
[PATCH -mm 02/11] PCI: add device_dma_parameters support
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 02/11] PCI: add device_dma_parameters support
, Jeff Garzik
, (Wed Oct 24, 7:34 am)
Re: [PATCH -mm 02/11] PCI: add device_dma_parameters support
, FUJITA Tomonori
, (Wed Oct 24, 9:41 am)
[PATCH -mm 03/11] x86: make pci-gart iommu respect the segme...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
[PATCH -mm 04/11] ppc: make iommu respect the segment size l...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
[PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
RE: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, Salyzyn, Mark
, (Wed Oct 24, 9:34 am)
RE: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, FUJITA Tomonori
, (Wed Oct 24, 12:21 pm)
RE: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, Salyzyn, Mark
, (Wed Oct 24, 12:25 pm)
Re: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, Jeff Garzik
, (Wed Oct 24, 7:31 am)
RE: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, Salyzyn, Mark
, (Wed Oct 24, 9:34 am)
Re: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size
, FUJITA Tomonori
, (Wed Oct 24, 7:35 am)
[PATCH -mm 06/11] alpha: make pci_iommu respect the segment ...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
[PATCH -mm 08/11] parisc: make iommu respect the segment siz...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 08/11] parisc: make iommu respect the segment...
, Jeff Garzik
, (Wed Oct 24, 7:35 am)
[PATCH -mm 10/11] sata_inic162x: use pci_set_dma_max_seg_size
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 10/11] sata_inic162x: use pci_set_dma_max_seg...
, Jeff Garzik
, (Wed Oct 24, 7:39 am)
[PATCH -mm 09/11] call blk_queue_segment_boundary in __scsi_...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __s...
, Jeff Garzik
, (Wed Oct 24, 7:39 am)
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __s...
, FUJITA Tomonori
, (Wed Oct 24, 10:15 am)
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __s...
, Jeff Garzik
, (Wed Oct 24, 10:34 am)
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __...
, Jens Axboe
, (Wed Oct 24, 10:28 am)
Re: [PATCH -mm 09/11] call blk_queue_segment_boundary in __...
, FUJITA Tomonori
, (Wed Oct 24, 10:36 am)
[PATCH -mm 07/11] sparc64: make iommu respect the segment si...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
[PATCH -mm 05/11] IA64: make sba_iommu respect the segment s...
, FUJITA Tomonori
, (Wed Oct 24, 6:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Miller
Re: [RFC/PATCH] Documentation of kernel messages
Rafael J. Wysocki
Re: linux-next: Tree for June 13: IO APIC breakage on HP nx6325
git
:
linux-netdev
:
Josip Rodin
bnx2_poll panicking kernel
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
785 guests
online.
Syndicate