scsi: scsi_debug: Weaken rwlock around ramdisk access
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 21 Apr 2020 15:14:20 +0000 (11:14 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 May 2020 03:06:07 +0000 (23:06 -0400)
commit67da413f26afc7522250bf5c9231f6711a9e7dfd
tree044e4b9c44b6d7855aba5437a57dfa758753ae20
parentc3e2fe9222d428f115baeba2f6b3637b3aa444cd
scsi: scsi_debug: Weaken rwlock around ramdisk access

The design of this driver is to do any ramdisk access on the same thread
that invoked the queuecommand() call. That is assumed to be user space
context. The command duration is implemented by setting the delay with a
high resolution timer. The hr timer's callback may well be in interrupt
context, but it doesn't touch the ramdisk. So try removing the
_irqsave()/_irqrestore() portion on the read-write lock that protects
ramdisk access.

Link: https://lore.kernel.org/r/20200421151424.32668-5-dgilbert@interlog.com
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c