Re: queued patches for SCSI for 2.6.24

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <James.Bottomley@...>
Cc: <tomof@...>, <akpm@...>, <linux-scsi@...>, <linux-kernel@...>, <fujita.tomonori@...>
Date: Tuesday, September 25, 2007 - 10:12 pm

On Tue, 25 Sep 2007 20:42:35 -0500
James Bottomley <James.Bottomley@SteelEye.com> wrote:


This can be cleanly applied to scsi-misc.

-
From: FUJITA Tomonori <tomof@acm.org>
Subject: [PATCH] set supported_mode to MODE_INITIATOR by default

This sets supported_mode to MODE_INITIATOR if a lld doesn't specify
supported_mode in scsi_host_template.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 drivers/scsi/hosts.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index adc9559..694015d 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -342,6 +342,10 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
 	shost->unchecked_isa_dma = sht->unchecked_isa_dma;
 	shost->use_clustering = sht->use_clustering;
 	shost->ordered_tag = sht->ordered_tag;
+
+	if (!sht->supported_mode)
+		sht->supported_mode = MODE_INITIATOR;
+
 	shost->active_mode = sht->supported_mode;
 
 	if (sht->max_host_blocked)
-- 
1.5.2.4

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
queued patches for SCSI for 2.6.24, James Bottomley, (Tue Sep 25, 9:00 pm)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Tue Sep 25, 9:28 pm)
Re: queued patches for SCSI for 2.6.24, James Bottomley, (Tue Sep 25, 9:42 pm)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Tue Sep 25, 10:12 pm)
Re: queued patches for SCSI for 2.6.24, Jeff Garzik, (Tue Sep 25, 10:37 pm)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Tue Sep 25, 10:52 pm)
Re: queued patches for SCSI for 2.6.24, Matthew Wilcox, (Tue Sep 25, 10:56 pm)
Re: queued patches for SCSI for 2.6.24, Jeff Garzik, (Tue Sep 25, 11:34 pm)
Re: queued patches for SCSI for 2.6.24, James Bottomley, (Tue Sep 25, 11:45 pm)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Wed Sep 26, 12:56 am)
Re: queued patches for SCSI for 2.6.24, James Bottomley, (Wed Sep 26, 10:07 am)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Tue Sep 25, 11:55 pm)
Re: queued patches for SCSI for 2.6.24, James Bottomley, (Wed Sep 26, 12:01 am)
Re: queued patches for SCSI for 2.6.24, FUJITA Tomonori, (Wed Sep 26, 12:10 am)
Re: queued patches for SCSI for 2.6.24, Jeff Garzik, (Tue Sep 25, 11:55 pm)
Re: queued patches for SCSI for 2.6.24, Matthew Wilcox, (Tue Sep 25, 11:38 pm)
Re: queued patches for SCSI for 2.6.24, David Miller, (Tue Sep 25, 9:05 pm)