]> git.baikalelectronics.ru Git - kernel.git/commit
cxlflash: Fix to avoid lock instrumentation rejection
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 21 Oct 2015 20:16:24 +0000 (15:16 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 30 Oct 2015 08:24:38 +0000 (17:24 +0900)
commit4dccdd22a112f7b19678fe58ea0610bff2a2522b
tree9e3959bdc53901339eefb03abcb66774c2bf6570
parentc43609572273e66f6d09419160a04fb43580d351
cxlflash: Fix to avoid lock instrumentation rejection

When running with lock instrumentation (e.g. lockdep), some of the
instrumentation can become disabled at probe time for a cxlflash
adapter. This is due to a missing lock registration for the tmf_slock.

The fix is to call spin_lock_init() for the tmf_slock during probe.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Acked-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/cxlflash/main.c