[SCSI] ibmvfc: Fix rport add/delete race resulting in oops
Commit 43c8da907c
introduced a race
condition which can occur when adding/deleting rports. There are
two possible threads now that can be deleting rports in the ibmvfc
driver, which can result in list_del being called twice, resulting
in an oops. This patch adds a new state to the ibmvfc_target struct
to indicate the target has been removed from the list and is in
the process of being deleted.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:

committed by
James Bottomley

parent
161155519c
commit
d5da3040d7
@@ -597,6 +597,7 @@ enum ibmvfc_target_action {
|
||||
IBMVFC_TGT_ACTION_INIT,
|
||||
IBMVFC_TGT_ACTION_INIT_WAIT,
|
||||
IBMVFC_TGT_ACTION_DEL_RPORT,
|
||||
IBMVFC_TGT_ACTION_DELETED_RPORT,
|
||||
};
|
||||
|
||||
struct ibmvfc_target {
|
||||
|
Reference in New Issue
Block a user