scsi: scsi_debug: Add debugfs interface to fail target reset
authorWenchao Hao <haowenchao2@huawei.com>
Tue, 10 Oct 2023 09:20:50 +0000 (17:20 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2023 00:50:11 +0000 (20:50 -0400)
commitf084fe52c640775de51056670f568ec7104b922a
tree258ff4ee7368651ffc8fc4f7696aec779a68712d
parent0267811625e13a7743eeb6072b57509bf909f484
scsi: scsi_debug: Add debugfs interface to fail target reset

The interface is found at
/sys/kernel/debug/scsi_debug/target<h:c:t>/fail_reset where <h:c:t>
identifies the target to inject errors on. It's a simple bool type
interface which would make this target's reset fail if set to 'Y'.

Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231010092051.608007-10-haowenchao2@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c