From: Greg KH <greg@kroah.com>
To: Xiangliang Yu <yuxiangl@marvell.com>
Cc: "James.Bottomley@suse.de" <James.Bottomley@suse.de>,
"jslaby@suse.cz" <jslaby@suse.cz>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Jacky Feng <jfeng@marvell.com>
Subject: Re: [PATCH 3/9] [SCSI] mvsas: Add driver version and interrupt coalescing to device attributes in sysfs
Date: Tue, 31 May 2011 15:41:16 +0800 [thread overview]
Message-ID: <20110531074116.GB6099@kroah.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19FAD84E1E@SC-VEXCH4.marvell.com>
On Tue, May 31, 2011 at 12:26:45AM -0700, Xiangliang Yu wrote:
>
> >Then I would strongly recommend never exporting this value to allow it
> >to be changed at all then. It doesn't sound worth it.
> OK, Thanks!
> I remove the sysfs file and the modified patch is:
Thanks for removing it, but you still left part of it in the patch, see
below.
> diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
> index 9f1cccc..d977684 100644
> --- a/drivers/scsi/mvsas/mv_init.c
> +++ b/drivers/scsi/mvsas/mv_init.c
> @@ -34,6 +34,8 @@ MODULE_PARM_DESC(collector, "\n"
> "\tThe mvsas SAS LLDD supports both modes.\n"
> "\tDefault: 1 (Direct Mode).\n");
>
> +int interrupt_coalescing = 0x80;
This should be named something else, or made static, as you just made it
a global name, which is not good at all.
> @@ -48,6 +50,8 @@ static const struct mvs_chip_info mvs_chips[] = {
> [chip_1320] = { 2, 4, 0x800, 17, 64, 9, &mvs_94xx_dispatch, },
> };
>
> +struct device_attribute *mvst_host_attrs[] = { NULL };
> +
> #define SOC_SAS_NUM 2
> #define SG_MX 64
>
> @@ -74,6 +78,7 @@ static struct scsi_host_template mvs_sht = {
> .slave_alloc = mvs_slave_alloc,
> .target_destroy = sas_target_destroy,
> .ioctl = sas_ioctl,
> + .shost_attrs = mvst_host_attrs,
Here, you don't need these at all now, right?
thanks,
greg k-h
next prev parent reply other threads:[~2011-05-31 7:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mvsas-intr-coal>
2011-05-24 14:31 ` [PATCH 3/9] [SCSI] mvsas: Add driver version and interrupt coalescing to device attributes in sysfs yxlraid
2011-05-26 2:18 ` Greg KH
2011-05-26 9:00 ` Xiangliang Yu
2011-05-26 14:14 ` Greg KH
2011-05-27 3:23 ` Xiangliang Yu
2011-05-27 7:33 ` Greg KH
2011-05-30 7:26 ` Xiangliang Yu
2011-05-30 7:45 ` Greg KH
2011-05-30 11:22 ` Xiangliang Yu
2011-05-30 14:48 ` Greg KH
2011-05-31 7:26 ` Xiangliang Yu
2011-05-31 7:41 ` Greg KH [this message]
2011-05-31 8:52 ` Xiangliang Yu
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=20110531074116.GB6099@kroah.com \
--to=greg@kroah.com \
--cc=James.Bottomley@suse.de \
--cc=jfeng@marvell.com \
--cc=jslaby@suse.cz \
--cc=linux-kernel@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