nvmet-fc: on port remove call put outside lock
authorJames Smart <jsmart2021@gmail.com>
Tue, 19 Sep 2017 22:13:11 +0000 (15:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 18:42:11 +0000 (12:42 -0600)
commit3688feb582a1bc4e58ad50f5eccfdb90615de27b
tree558dcb80c86311579b084d9533d29f08cdc4d023
parente4d753d7e51c0648b9ee33efeed55d45f362fc3d
nvmet-fc: on port remove call put outside lock

Avoid calling the put routine, as it may traverse to free routines while
holding the target lock.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/fc.c