public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] limit set the host state by sysfs
@ 2023-03-25  1:17 Ye Bin
  2023-03-25  1:17 ` [PATCH 1/5] scsi: fix switch host state race between by sysfs and others Ye Bin
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Ye Bin @ 2023-03-25  1:17 UTC (permalink / raw)
  To: jejb, martin.petersen, linux-scsi, linux-kernel; +Cc: Ye Bin

From: Ye Bin <yebin10@huawei.com>

Now, we can set the host state by sysfs with any value. Actually, it
doesn't make sense. May cause some functional issues.
This patchset introduce 'blocked' state to blocking IO, we can use this
state for testing. Perhaps we can use this to do some fault recovery or
firmware upgrades, as long as the driver support is good, it may be
insensitive to the upper layer.

Ye Bin (5):
  scsi: fix switch host state race between by sysfs and others
  scsi: introduce SHOST_BLOCKED state to support blocking IO
  scsi: limit to set the host state
  scsi: blocking IO when host is blocked
  scsi: run queue after set host state from blocked to running

 drivers/scsi/hosts.c      | 11 +++++++++++
 drivers/scsi/scsi_lib.c   |  4 ++++
 drivers/scsi/scsi_sysfs.c | 18 +++++++++++++++++-
 include/scsi/scsi_host.h  |  6 ++++++
 4 files changed, 38 insertions(+), 1 deletion(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-27 21:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25  1:17 [PATCH 0/5] limit set the host state by sysfs Ye Bin
2023-03-25  1:17 ` [PATCH 1/5] scsi: fix switch host state race between by sysfs and others Ye Bin
2023-03-27 21:26   ` Bart Van Assche
2023-03-25  1:17 ` [PATCH 2/5] scsi: introduce SHOST_BLOCKED state to support blocking IO Ye Bin
2023-03-27 21:34   ` Bart Van Assche
2023-03-25  1:17 ` [PATCH 3/5] scsi: limit to set the host state Ye Bin
2023-03-27 21:25   ` Bart Van Assche
2023-03-25  1:17 ` [PATCH 4/5] scsi: blocking IO when host is blocked Ye Bin
2023-03-27 21:37   ` Bart Van Assche
2023-03-25  1:17 ` [PATCH 5/5] scsi: run queue after set host state from blocked to running Ye Bin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox