Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: scsi_transport_fc: Remove double FC_FPORT_DELETED in mask creation

Remove the double listed FC_FPORT_DELETING from the mask creation.

Commit 260f4aeddb48 ("scsi: scsi_transport_fc: return -EBUSY for deleted
vport") added VC_VPORT_DELETING to the flag masks. This is not necessary as
FC_FPORT_DEL is defined as VC_FPORT_DELETED | FC_FPORT_DELETING.

Link: https://lore.kernel.org/r/20210520073127.132456-1-dwagner@suse.de
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Daniel Wagner and committed by
Martin K. Petersen
faa6c1d9 8e060b31

+1 -1
+1 -1
drivers/scsi/scsi_transport_fc.c
··· 1686 1686 unsigned long flags; 1687 1687 1688 1688 spin_lock_irqsave(shost->host_lock, flags); 1689 - if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING | FC_VPORT_DELETING)) { 1689 + if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) { 1690 1690 spin_unlock_irqrestore(shost->host_lock, flags); 1691 1691 return -EBUSY; 1692 1692 }