Skip to content

limit set the host state by sysfs

Ye Bin linux-scsi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v15 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scsi: forbid to set scsi host state by sysfsdrivers/scsi/scsi_sysfs.c+1 -250 replies
2/3scsi: introduce 'blocked' sysfs apidrivers/scsi/scsi_sysfs.c include/scsi/scsi_host.h+35 -01 reply
3/3scsi: blocking IO when host is set blockeddrivers/scsi/scsi_lib.c include/scsi/scsi_host.h+7 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] limit set the host state by sysfs

From: Ye Bin <[email protected]>

Diff v2 vs v1:
1. Remove set scsi host state by sysfs, as set host state by sysfs may lead to functional issue. Scsi host state has it's own running state machine.
2. Introduce 'blocked' sysfs api for set scsi host blocking IO. Use this function we can do some test.

Ye Bin (3):
scsi: forbid to set scsi host state by sysfs
scsi: introduce 'blocked' sysfs api
scsi: blocking IO when host is set blocked

 drivers/scsi/scsi_lib.c   |  2 ++
 drivers/scsi/scsi_sysfs.c | 58 ++++++++++++++++++++++-----------------
 include/scsi/scsi_host.h  |  8 ++++++
 3 files changed, 43 insertions(+), 25 deletions(-)
Signature · 1 line
2.31.1