Skip to content

Commit 23815df

Browse files
maurizio-lombardimartinkpetersen
authored andcommitted
scsi: scsi_debug: Remove dead code
The ramdisk rwlocks are not used anymore. Fixes: 87c715d ("scsi: scsi_debug: Add per_host_store option") Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Link: https://lore.kernel.org/r/20230628150638.53218-1-mlombard@redhat.com Reviewed-by: Laurence Oberman <loberman@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 04d91b7 commit 23815df

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/scsi/scsi_debug.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,6 @@ static int sdeb_zbc_nr_conv = DEF_ZBC_NR_CONV_ZONES;
841841
static int submit_queues = DEF_SUBMIT_QUEUES; /* > 1 for multi-queue (mq) */
842842
static int poll_queues; /* iouring iopoll interface.*/
843843

844-
static DEFINE_RWLOCK(atomic_rw);
845-
static DEFINE_RWLOCK(atomic_rw2);
846-
847-
static rwlock_t *ramdisk_lck_a[2];
848-
849844
static char sdebug_proc_name[] = MY_NAME;
850845
static const char *my_name = MY_NAME;
851846

@@ -6818,9 +6813,6 @@ static int __init scsi_debug_init(void)
68186813
int k, ret, hosts_to_add;
68196814
int idx = -1;
68206815

6821-
ramdisk_lck_a[0] = &atomic_rw;
6822-
ramdisk_lck_a[1] = &atomic_rw2;
6823-
68246816
if (sdebug_ndelay >= 1000 * 1000 * 1000) {
68256817
pr_warn("ndelay must be less than 1 second, ignored\n");
68266818
sdebug_ndelay = 0;

0 commit comments

Comments
 (0)