diff options
author | Matthew R. Ochs <mrochs@linux.vnet.ibm.com> | 2015-10-21 15:11:18 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-10-30 17:00:52 +0900 |
commit | 22fe1ae80fd14cb64be61d004b5e6c324bb6e984 (patch) | |
tree | c9615f6e139529acb8fbd011eb576e4fdddca852 /include/acpi/acpi_lpat.h | |
parent | 471a5a60aaf13b2323d2b63d212bbdd6ce2bef28 (diff) |
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>
Diffstat (limited to 'include/acpi/acpi_lpat.h')
0 files changed, 0 insertions, 0 deletions