* [PATCH 4/5] scsi_add_host sets device max_segment_size
@ 2007-09-26 8:58 FUJITA Tomonori
0 siblings, 0 replies; only message in thread
From: FUJITA Tomonori @ 2007-09-26 8:58 UTC (permalink / raw)
To: James.Bottomley, jens.axboe, hch, jeff, gregkh, hare, linux-scsi
Cc: fujita.tomonori
scsi_add_host sets shost_gendev.parent->max_segment_size to enables
iommu code to merge sg lists properly about lld's max segment size
limit.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
drivers/scsi/hosts.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 22877d3..a71a836 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -206,6 +206,9 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev)
if (!shost->shost_gendev.parent)
shost->shost_gendev.parent = dev ? dev : &platform_bus;
+ if (dev)
+ dev->max_segment_size = shost->dma_max_segment_size;
+
error = device_add(&shost->shost_gendev);
if (error)
goto out;
--
1.5.2.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-26 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 8:58 [PATCH 4/5] scsi_add_host sets device max_segment_size FUJITA Tomonori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox