[<prev] [next>] [day] [month] [year] [list]
Message-ID: <6E21E5352C11B742B20C142EB499E048081D2BE0@TK5EX14MBXC128.redmond.corp.microsoft.com>
Date: Thu, 8 Sep 2011 16:55:02 +0000
From: KY Srinivasan <kys@...rosoft.com>
To: Olaf Hering <olaf@...fle.de>
CC: "gregkh@...e.de" <gregkh@...e.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
"virtualization@...ts.osdl.org" <virtualization@...ts.osdl.org>
Subject: RE: [PATCH] Staging: hv: storvsc: Show the modulename in
/sys/class/scsi_host/*/proc_name
> -----Original Message-----
> From: Olaf Hering [mailto:olaf@...fle.de]
> Sent: Thursday, September 08, 2011 12:27 PM
> To: KY Srinivasan
> Cc: gregkh@...e.de; linux-kernel@...r.kernel.org;
> devel@...uxdriverproject.org; virtualization@...ts.osdl.org
> Subject: [PATCH] Staging: hv: storvsc: Show the modulename in
> /sys/class/scsi_host/*/proc_name
>
>
> mkinitrd relies on /sys/class/scsi_host/*/proc_name instead of
> /sys/block/sd*/device/../../../moalias to get the scsi driver module
> name.
> As a fallback the sysfs driver name could be used, which does not match
> the module name either ('storvsc' vs. 'hv_storvsc').
>
> Signed-off-by: Olaf Hering <olaf@...fle.de>
>
> ---
> drivers/staging/hv/storvsc_drv.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- a/drivers/staging/hv/storvsc_drv.c
> +++ b/drivers/staging/hv/storvsc_drv.c
> @@ -1333,7 +1333,8 @@ static DEF_SCSI_QCMD(storvsc_queuecomman
> /* Scsi driver */
> static struct scsi_host_template scsi_driver = {
> .module = THIS_MODULE,
> - .name = "storvsc_host_t",
> + .name = "hv_storvsc",
> + .proc_name = "hv_storvsc",
> .bios_param = storvsc_get_chs,
> .queuecommand = storvsc_queuecommand,
> .eh_host_reset_handler = storvsc_host_reset_handler,
Acked-by: K. Y. Srinivasan <kys@...rosoft.com>
Powered by blists - more mailing lists