scsi: scsi_transport_fc: return -EBUSY for deleted vport
authorHannes Reinecke <hare@suse.de>
Mon, 24 Jul 2017 10:09:36 +0000 (12:09 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jul 2017 02:17:30 +0000 (22:17 -0400)
commit260f4aeddb48b16b2f4da306f4d97d44ef102f6b
treee152e54711ef4e1ee1bb773cc99a97f5eba6b356
parent5029271072bf55afa6d836180ee93af09b26ab8b
scsi: scsi_transport_fc: return -EBUSY for deleted vport

When trying to delete a vport via 'vport_delete' sysfs attribute we
should be checking if the port is already in state VPORT_DELETING; if so
there's no need to do anything.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c