]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_debug: Strengthen defer_t accesses
authorDouglas Gilbert <dgilbert@interlog.com>
Sun, 9 Jan 2022 01:28:46 +0000 (20:28 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jan 2022 05:25:05 +0000 (00:25 -0500)
commit83eafc6f146aaa9ba5fb02d096af4e6c88be8540
treee582293da4cd150c7e7c18d0cfc2fb68ab53f722
parent23acddff7b034b89adf479d77b640ebbf353afbb
scsi: scsi_debug: Strengthen defer_t accesses

Use READ_ONCE() and WRITE_ONCE() macros when accessing the
sdebug_defer::defer_t value.

Link: https://lore.kernel.org/r/20220109012853.301953-3-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