* [PATCH 2/2] libata: remove blk_queue_max_phys_segments
@ 2007-09-03 9:40 FUJITA Tomonori
2007-09-03 10:29 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: FUJITA Tomonori @ 2007-09-03 9:40 UTC (permalink / raw)
To: linux-scsi; +Cc: jeff, jens.axboe, James.Bottomley, fujita.tomonori
Jeff, can I get your ACK on this patch?
Whatever in a request queue we set, iommu code ignores all the sg list
limitations.
---
>From 703d5158361bb6a4ecdc5cd9a6961a8cfb419f73 Mon Sep 17 00:00:00 2001
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Date: Mon, 3 Sep 2007 06:49:11 +0100
Subject: [PATCH 2/2] remove blk_queue_max_phys_segments in libata
LIBATA_MAX_PRD is the maximum number of DMA scatter/gather elements
permitted by the HBA's DMA engine. It's properly set to
q->max_hw_segments via the sg_tablesize parameter.
libata shouldn't call blk_queue_max_phys_segments. Now LIBATA_MAX_PRD
is equal to SCSI_MAX_PHYS_SEGMENTS by default (both is 128), so
everything is fine. But if they are changed, some code (like the scsi
mid layer, sg chaining, etc) might not work properly.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
drivers/ata/libata-scsi.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index e836476..5194f3d 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -800,8 +800,6 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
ata_scsi_sdev_config(sdev);
- blk_queue_max_phys_segments(sdev->request_queue, LIBATA_MAX_PRD);
-
sdev->manage_start_stop = 1;
if (dev)
--
1.5.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] libata: remove blk_queue_max_phys_segments
2007-09-03 9:40 [PATCH 2/2] libata: remove blk_queue_max_phys_segments FUJITA Tomonori
@ 2007-09-03 10:29 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-09-03 10:29 UTC (permalink / raw)
To: FUJITA Tomonori; +Cc: linux-scsi, jeff, James.Bottomley, fujita.tomonori
On Mon, Sep 03 2007, FUJITA Tomonori wrote:
> Jeff, can I get your ACK on this patch?
>
> Whatever in a request queue we set, iommu code ignores all the sg list
> limitations.
It has my ack, libata should not fiddle with the physical segment
setting, since it's not managing the (non-hardware) side of the sg
table.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-03 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-03 9:40 [PATCH 2/2] libata: remove blk_queue_max_phys_segments FUJITA Tomonori
2007-09-03 10:29 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox