Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: scsi_debug: Remove dead code

The ramdisk rwlocks are not used anymore.

Fixes: 87c715dcde63 ("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>

authored by

Maurizio Lombardi and committed by
Martin K. Petersen
23815df5 04d91b78

-8
-8
drivers/scsi/scsi_debug.c
··· 841 841 static int submit_queues = DEF_SUBMIT_QUEUES; /* > 1 for multi-queue (mq) */ 842 842 static int poll_queues; /* iouring iopoll interface.*/ 843 843 844 - static DEFINE_RWLOCK(atomic_rw); 845 - static DEFINE_RWLOCK(atomic_rw2); 846 - 847 - static rwlock_t *ramdisk_lck_a[2]; 848 - 849 844 static char sdebug_proc_name[] = MY_NAME; 850 845 static const char *my_name = MY_NAME; 851 846 ··· 6812 6817 unsigned long sz; 6813 6818 int k, ret, hosts_to_add; 6814 6819 int idx = -1; 6815 - 6816 - ramdisk_lck_a[0] = &atomic_rw; 6817 - ramdisk_lck_a[1] = &atomic_rw2; 6818 6820 6819 6821 if (sdebug_ndelay >= 1000 * 1000 * 1000) { 6820 6822 pr_warn("ndelay must be less than 1 second, ignored\n");