]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a23becca4fc217d53b30f340913ea829efb20dd
tree044e4b9c44b6d7855aba5437a57dfa758753ae20
parent746608881d33b3c89be7d2eeb3e1ad3d2985a2d5
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