diff options
| author | Daniel Wagner <wagi@kernel.org> | 2025-04-08 18:29:09 +0300 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2025-04-09 14:03:56 +0300 |
| commit | b0b26ad0e1943de25ce82a7e5af3574f31b1cf99 (patch) | |
| tree | 6e10b5e104226a5a422487cb90fcc1b61b22f3c0 /rust/helpers/bitops.c | |
| parent | 1a909565733edb1d46c8e9692a1ee278912b5a77 (diff) | |
| download | linux-b0b26ad0e1943de25ce82a7e5af3574f31b1cf99.tar.xz | |
nvmet-fc: take tgtport reference only once
The reference counting code can be simplified. Instead taking a tgtport
refrerence at the beginning of nvmet_fc_alloc_hostport and put it back
if not a new hostport object is allocated, only take it when a new
hostport object is allocated.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'rust/helpers/bitops.c')
0 files changed, 0 insertions, 0 deletions
