diff options
| author | James Smart <jsmart2021@gmail.com> | 2020-03-31 09:49:56 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-05-09 16:18:34 -0600 |
| commit | 0dfb992e0ec2e7b9e5ccf92d2261aaa6b5cc57a8 (patch) | |
| tree | a9bc0bd13beee9e3d430654b077bc61c04d469cd /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | nvmet-fc: add LS failure messages (diff) | |
| download | linux-0dfb992e0ec2e7b9e5ccf92d2261aaa6b5cc57a8.tar.gz linux-0dfb992e0ec2e7b9e5ccf92d2261aaa6b5cc57a8.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
