nvmet-fc: perform small cleanups on unneeded checks
authorJames Smart <jsmart2021@gmail.com>
Tue, 31 Mar 2020 16:49:56 +0000 (09:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:34 +0000 (16:18 -0600)
commit0dfb992e0ec2e7b9e5ccf92d2261aaa6b5cc57a8
treea9bc0bd13beee9e3d430654b077bc61c04d469cd
parenta5c2b4f633cf06df62d24b0ef11f824e8da646a5
nvmet-fc: perform small cleanups on unneeded checks

While code reviewing saw a couple of items that can be cleaned up:
- In nvmet_fc_delete_target_queue(), the routine unlocks, then checks
  and relocks.  Reorganize to avoid the unlock/relock.
- In nvmet_fc_delete_target_queue(), there's a check on the disconnect
  state that is unnecessary as the routine validates the state before
  starting any action.

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