public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] limit set the host state by sysfs
@ 2023-03-28 14:34 Ye Bin
  2023-03-28 14:34 ` [PATCH v2 1/3] scsi: forbid to set scsi " Ye Bin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ye Bin @ 2023-03-28 14:34 UTC (permalink / raw)
  To: jejb, martin.petersen, linux-scsi, linux-kernel; +Cc: Ye Bin

From: Ye Bin <yebin10@huawei.com>

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(-)

-- 
2.31.1


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

end of thread, other threads:[~2023-03-28 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-28 14:34 [PATCH v2 0/3] limit set the host state by sysfs Ye Bin
2023-03-28 14:34 ` [PATCH v2 1/3] scsi: forbid to set scsi " Ye Bin
2023-03-28 14:34 ` [PATCH v2 2/3] scsi: introduce 'blocked' sysfs api Ye Bin
2023-03-28 16:06   ` Mike Christie
2023-03-28 14:34 ` [PATCH v2 3/3] scsi: blocking IO when host is set blocked Ye Bin
2023-03-28 15:56   ` Mike Christie

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