* [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c
@ 2018-02-12 18:41 Bart Van Assche
2018-02-13 6:43 ` Hannes Reinecke
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bart Van Assche @ 2018-02-12 18:41 UTC (permalink / raw)
To: Martin K . Petersen, James E . J . Bottomley
Cc: linux-scsi, Bart Van Assche, Bart Van Assche, Christoph Hellwig,
Hannes Reinecke, Johannes Thumshirn
The eh_deadline definition occurs in the middle of the code for
releasing a host. Avoid splitting the host release code by moving
the definition of the eh_deadline parameter to the top of the
hosts.c source file.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
---
drivers/scsi/hosts.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 57bf43e34863..a0a7e4ff255c 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -42,6 +42,12 @@
#include "scsi_logging.h"
+static int shost_eh_deadline = -1;
+
+module_param_named(eh_deadline, shost_eh_deadline, int, S_IRUGO|S_IWUSR);
+MODULE_PARM_DESC(eh_deadline,
+ "SCSI EH timeout in seconds (should be between 0 and 2^31-1)");
+
static DEFINE_IDA(host_index_ida);
@@ -358,12 +364,6 @@ static void scsi_host_dev_release(struct device *dev)
kfree(shost);
}
-static int shost_eh_deadline = -1;
-
-module_param_named(eh_deadline, shost_eh_deadline, int, S_IRUGO|S_IWUSR);
-MODULE_PARM_DESC(eh_deadline,
- "SCSI EH timeout in seconds (should be between 0 and 2^31-1)");
-
static struct device_type scsi_host_type = {
.name = "scsi_host",
.release = scsi_host_dev_release,
--
2.16.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c
2018-02-12 18:41 [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c Bart Van Assche
@ 2018-02-13 6:43 ` Hannes Reinecke
2018-02-13 8:29 ` Johannes Thumshirn
2018-02-14 2:42 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2018-02-13 6:43 UTC (permalink / raw)
To: Bart Van Assche, James E . J . Bottomley, Martin K . Petersen
Cc: Christoph Hellwig, Bart Van Assche, Johannes Thumshirn,
linux-scsi
On 02/12/2018 07:41 PM, Bart Van Assche wrote:
> The eh_deadline definition occurs in the middle of the code for
> releasing a host. Avoid splitting the host release code by moving
> the definition of the eh_deadline parameter to the top of the
> hosts.c source file.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Johannes Thumshirn <jthumshirn@suse.de>
> ---
> drivers/scsi/hosts.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
> index 57bf43e34863..a0a7e4ff255c 100644
> --- a/drivers/scsi/hosts.c
> +++ b/drivers/scsi/hosts.c
> @@ -42,6 +42,12 @@
> #include "scsi_logging.h"
>
>
> +static int shost_eh_deadline = -1;
> +
> +module_param_named(eh_deadline, shost_eh_deadline, int, S_IRUGO|S_IWUSR);
> +MODULE_PARM_DESC(eh_deadline,
> + "SCSI EH timeout in seconds (should be between 0 and 2^31-1)");
> +
> static DEFINE_IDA(host_index_ida);
>
>
> @@ -358,12 +364,6 @@ static void scsi_host_dev_release(struct device *dev)
> kfree(shost);
> }
>
> -static int shost_eh_deadline = -1;
> -
> -module_param_named(eh_deadline, shost_eh_deadline, int, S_IRUGO|S_IWUSR);
> -MODULE_PARM_DESC(eh_deadline,
> - "SCSI EH timeout in seconds (should be between 0 and 2^31-1)");
> -
> static struct device_type scsi_host_type = {
> .name = "scsi_host",
> .release = scsi_host_dev_release,
>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cheers,
Hannes
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c
2018-02-12 18:41 [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c Bart Van Assche
2018-02-13 6:43 ` Hannes Reinecke
@ 2018-02-13 8:29 ` Johannes Thumshirn
2018-02-14 2:42 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-02-13 8:29 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen, James E . J . Bottomley
Cc: linux-scsi, Bart Van Assche, Christoph Hellwig, Hannes Reinecke
Thanks Bart,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
--
Johannes Thumshirn Storage
jthu
mshirn@suse.de +49 911 74053 689
SUSE
LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane
Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38
9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c
2018-02-12 18:41 [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c Bart Van Assche
2018-02-13 6:43 ` Hannes Reinecke
2018-02-13 8:29 ` Johannes Thumshirn
@ 2018-02-14 2:42 ` Martin K. Petersen
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2018-02-14 2:42 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, James E . J . Bottomley, linux-scsi,
Bart Van Assche, Christoph Hellwig, Hannes Reinecke,
Johannes Thumshirn
Bart,
> The eh_deadline definition occurs in the middle of the code for
> releasing a host. Avoid splitting the host release code by moving
> the definition of the eh_deadline parameter to the top of the
> hosts.c source file.
Applied to 4.17/scsi-queue. Thank you!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-14 2:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 18:41 [PATCH] Move the eh_deadline module parameter definition to the top of hosts.c Bart Van Assche
2018-02-13 6:43 ` Hannes Reinecke
2018-02-13 8:29 ` Johannes Thumshirn
2018-02-14 2:42 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox