diff options
author | Daniel Wagner <wagi@kernel.org> | 2025-09-02 13:22:03 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2025-09-15 18:52:57 +0300 |
commit | 891cdbb162ccdb079cd5228ae43bdeebce8597ad (patch) | |
tree | 1c0f9dc31e43095b2ed683b5ca8523107528b753 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | 10c165af35d225eb033f4edc7fcc699a8d2d533d (diff) | |
download | linux-891cdbb162ccdb079cd5228ae43bdeebce8597ad.tar.xz |
nvme-fc: use lock accessing port_state and rport state
nvme_fc_unregister_remote removes the remote port on a lport object at
any point in time when there is no active association. This races with
with the reconnect logic, because nvme_fc_create_association is not
taking a lock to check the port_state and atomically increase the
active count on the rport.
Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Closes: https://lore.kernel.org/all/u4ttvhnn7lark5w3sgrbuy2rxupcvosp4qmvj46nwzgeo5ausc@uyrkdls2muwx
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions