Skip to contentSkip to conversation

scsi: arcmsr: Add driver parameter cmd_timeout for scsi command timeout setting

PATCH In review Ching Huang 3 participants 5 messages May 7, 2018 – May 9, 2018 SCSI

lore
Share & tools
lore
#0 lore raw

cover scsi: arcmsr: Add driver parameter cmd_timeout for scsi command timeout setting

Quoted 1 line

From Ching Huang <[email protected]>

This patch series are against to mkp's 4.18/scsi-queue.

1. Add driver parameter cmd_timeout, default value is ARCMSR_DEFAULT_TIMEOUT.
2. Add slave_configure callback function to set device command timeout value.
3. Update driver version to v1.40.00.06-20180504.

--

#1 lore raw

Hello Ching,

Quoted 3 lines

1. Add driver parameter cmd_timeout, default value is ARCMSR_DEFAULT_TIMEOUT.
2. Add slave_configure callback function to set device command timeout value.
3. Update driver version to v1.40.00.06-20180504.

I am not so keen on arcmsr overriding the timeout set by the admin or application.

Also, instead of introducing this module parameter, why not simply ask the user to change rq_timeout?

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#2 lore raw
Quoted 6 lines · Martin K. Petersen

Hello Ching,

Quoted 3 lines

1. Add driver parameter cmd_timeout, default value is ARCMSR_DEFAULT_TIMEOUT.
2. Add slave_configure callback function to set device command timeout value.
3. Update driver version to v1.40.00.06-20180504.

Quoted 6 lines

I am not so keen on arcmsr overriding the timeout set by the admin or application.

Also, instead of introducing this module parameter, why not simply ask the user to change rq_timeout?

This timeout setting only after device has been inquiry successfully. Of course, user can set timeout value to /sys/block/sdX/device/timeout. But user does not like to set this value once command timeout occurred. They rather like timeout never happen.

#3 lore raw
Quoted 10 lines · Ching Huang
Quoted 9 lines · Martin K. Petersen

Hello Ching,

Quoted 3 lines

1. Add driver parameter cmd_timeout, default value is ARCMSR_DEFAULT_TIMEOUT.
2. Add slave_configure callback function to set device command timeout value.
3. Update driver version to v1.40.00.06-20180504.

I am not so keen on arcmsr overriding the timeout set by the admin or application.

Quoted 8 lines
Quoted 3 lines

Also, instead of introducing this module parameter, why not simply ask the user to change rq_timeout?

This timeout setting only after device has been inquiry successfully. Of course, user can set timeout value to /sys/block/sdX/device/timeout. But user does not like to set this value once command timeout occurred. They rather like timeout never happen.

This timeout setting apply to all devices, its better than user has to set one bye one for each device.

#4 lore raw
Quoted 14 lines · Ching Huang
Quoted 13 lines · Ching Huang
Quoted 12 lines · Martin K. Petersen

Hello Ching,

Quoted 3 lines

1. Add driver parameter cmd_timeout, default value is ARCMSR_DEFAULT_TIMEOUT.
2. Add slave_configure callback function to set device command timeout value.
3. Update driver version to v1.40.00.06-20180504.

I am not so keen on arcmsr overriding the timeout set by the admin or application.

Also, instead of introducing this module parameter, why not simply ask the user to change rq_timeout?

Quoted 7 lines
Quoted 5 lines

This timeout setting only after device has been inquiry successfully. Of course, user can set timeout value to /sys/block/sdX/device/timeout. But user does not like to set this value once command timeout occurred. They rather like timeout never happen.

This timeout setting apply to all devices, its better than user has to set one bye one for each device.

Udev rules?

Something roughly like bottom of:
https://www.ibm.com/support/knowledgecenter/ST3FR7_8.1.2/com.ibm.storwize.v7000.812.doc/svc_linux_settings.html
or better doing the assignment with udev builtins (fix the syntax error with model):
https://www.ibm.com/support/knowledgecenter/ST3FR7_8.1.2/com.ibm.storwize.v7000.812.doc/svc_zs_statechange_3fgeri.html

Signature · 10 lines
Mit freundlichen Grüßen / Kind regards
Steffen Maier

Linux on z Systems Development

IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294