linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Xiangliang Yu <yuxiangl@marvell.com>
Cc: Dan Williams <dan.j.williams@intel.com>,
	"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"JBottomley@parallels.com" <JBottomley@parallels.com>
Subject: Re: [PATCH 4/5] mvsas: remove mvs_slave_{alloc|configure}
Date: Wed, 21 Sep 2011 22:31:40 -0400	[thread overview]
Message-ID: <4E7A9E0C.3090509@pobox.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D1A1150A607@SC-VEXCH4.marvell.com>

On 09/21/2011 10:26 PM, Xiangliang Yu wrote:
>
>> Subject: [PATCH 4/5] mvsas: remove mvs_slave_{alloc|configure}
>>
>> libsas now handles:
>> 1/ limiting ata scanning to lun0
>> 2/ maximizing the queue_depth of sas devices (up to 256, mvsas only
>>     supports 64)
>> 3/ changes to /sys/block/<sdX>/device/queue_depth for ata devices
>>
>> Cc: Xiangliang Yu<yuxiangl@marvell.com>
>> Signed-off-by: Dan Williams<dan.j.williams@intel.com>
>> ---
>>   drivers/scsi/mvsas/mv_init.c |    4 ++--
>>   drivers/scsi/mvsas/mv_sas.c  |   30 ------------------------------
>>   drivers/scsi/mvsas/mv_sas.h  |    2 --
>>   3 files changed, 2 insertions(+), 34 deletions(-)
>>
>> diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
>> index 4e9af66..052861b 100644
>> --- a/drivers/scsi/mvsas/mv_init.c
>> +++ b/drivers/scsi/mvsas/mv_init.c
>> @@ -59,7 +59,7 @@ static struct scsi_host_template mvs_sht = {
>>   	.name			= DRV_NAME,
>>   	.queuecommand		= sas_queuecommand,
>>   	.target_alloc		= sas_target_alloc,
>> -	.slave_configure	= mvs_slave_configure,
>> +	.slave_configure	= sas_slave_configure,
>>   	.slave_destroy		= sas_slave_destroy,
>>   	.scan_finished		= mvs_scan_finished,
>>   	.scan_start		= mvs_scan_start,
>> @@ -74,7 +74,7 @@ static struct scsi_host_template mvs_sht = {
>>   	.use_clustering		= ENABLE_CLUSTERING,
>>   	.eh_device_reset_handler = sas_eh_device_reset_handler,
>>   	.eh_bus_reset_handler	= sas_eh_bus_reset_handler,
>> -	.slave_alloc		= mvs_slave_alloc,
>> +	.slave_alloc		= sas_slave_alloc,
>>   	.target_destroy		= sas_target_destroy,
>> -int mvs_slave_configure(struct scsi_device *sdev)
>> -{
>> -	struct domain_device *dev = sdev_to_domain_dev(sdev);
>> -	int ret = sas_slave_configure(sdev);
>> -
>> -	if (ret)
>> -		return ret;
>> -	if (!dev_is_sata(dev)) {
>> -		sas_change_queue_depth(sdev,
>> -			MVS_QUEUE_SIZE,
>> -			SCSI_QDEPTH_DEFAULT);
>> -	}
>> -	return 0;
> Can you don't remove mvs_slave_configure function? Someday it will be useful, such as fixing some issue.
> Thanks!

There is no reason to keep a no-op function there.

	Jeff






  reply	other threads:[~2011-09-22  2:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 22:10 [PATCH 0/5] libsas fixes discovered via isci-atapi enabling effort Dan Williams
2011-09-20 22:10 ` [PATCH 1/5] libsas: disable scanning lun > 0 on ata devices Dan Williams
2011-09-20 22:15   ` Christoph Hellwig
2011-09-21 12:28   ` Mark Salyzyn
2011-09-22  2:29   ` Jeff Garzik
2011-09-20 22:10 ` [PATCH 2/5] libsas: fix ->change_queue_{depth|type} for sata devices Dan Williams
2011-09-20 22:16   ` Christoph Hellwig
2011-09-21 12:27   ` Mark Salyzyn
2011-09-22  2:30   ` Jeff Garzik
2011-09-20 22:10 ` [RFC PATCH 3/5] libsas: dynamic queue depth Dan Williams
2011-09-20 22:18   ` Christoph Hellwig
2011-09-21  1:17   ` Jack Wang
2011-09-21 12:37   ` Mark Salyzyn
2011-09-22  1:38     ` Jack Wang
2011-09-20 22:10 ` [PATCH 4/5] mvsas: remove mvs_slave_{alloc|configure} Dan Williams
2011-09-22  2:26   ` Xiangliang Yu
2011-09-22  2:31     ` Jeff Garzik [this message]
2011-09-22  3:17     ` Williams, Dan J
2011-09-22  3:19       ` Xiangliang Yu
2011-09-20 22:11 ` [PATCH 5/5] pm8001: remove pm8001_slave_{alloc|configure} Dan Williams
2011-09-21  1:13 ` [PATCH 0/5] libsas fixes discovered via isci-atapi enabling effort Jack Wang

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=4E7A9E0C.3090509@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=JBottomley@parallels.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=yuxiangl@marvell.com \
    /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;
as well as URLs for NNTP newsgroup(s).