diff options
| author | Muneendra Kumar <[email protected]> | 2021-01-07 03:19:07 +0530 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-01-14 22:55:17 -0500 |
| commit | afdd1126940068ef06c2b4b08b85a47a3eafba5b (patch) | |
| tree | e0bfb9b0e899cc49a93035731607959201ae8e71 /tools/perf/scripts/python | |
| parent | 02c66326dc7e8b3a71b7ceb9a08ec1208e13ea84 (diff) | |
scsi: scsi_transport_fc: Add store capability to rport port_state in sysfs
Add store capability to the rport port_state using sysfs under
fc_remote_ports/rport-*/port_state.
With this the user can move the port_state from Marginal->Online and
Online->Marginal.
- Marginal: This interface will set SCMD_NORETRIES_ABORT bit in
scmd->state for all the pending I/Os on the SCSI device associated with
target port.
- Online: This interface will clear SCMD_NORETRIES_ABORT bit in
scmd->state for all the pending I/Os on the SCSI device associated with
target port.
The following interface is provided to set the port state to Marginal and
Online respectively:
echo "Marginal" >> /sys/class/fc_remote_ports/rport-X\:Y-Z/port_state
echo "Online" >> /sys/class/fc_remote_ports/rport-X\:Y-Z/port_state
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Himanshu Madhani <[email protected]>
Reviewed-by: Ewan D. Milne <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Muneendra Kumar <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions