linux-stable/drivers/scsi/cxlflash
Matthew R. Ochs 22fe1ae80f cxlflash: Fix potential oops following LUN removal
When a LUN is removed, the sdev that is associated with the LUN
remains intact until its reference count drops to 0. In order
to prevent an sdev from being removed while a context is still
associated with it, obtain an additional reference per-context
for each LUN attached to the context.

This resolves a potential Oops in the release handler when a
dealing with a LUN that has already been removed.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
2015-10-30 17:00:52 +09:00
..
common.h cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00
Kconfig
lunmgt.c cxlflash: Fix to avoid invalid port_sel value 2015-10-30 16:57:21 +09:00
main.c cxlflash: Remove unused variable from queuecommand 2015-08-26 18:08:47 -07:00
main.h
Makefile cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00
sislite.h cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00
superpipe.c cxlflash: Fix potential oops following LUN removal 2015-10-30 17:00:52 +09:00
superpipe.h cxlflash: Fix read capacity timeout 2015-10-30 16:58:09 +09:00
vlun.c cxlflash: Fix read capacity timeout 2015-10-30 16:58:09 +09:00
vlun.h cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00