]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Make it possible to find the volumes that are using a server
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2023 16:08:43 +0000 (16:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:38 +0000 (16:45 +0100)
commit0b2bf6fb53530fc5772fc2bcee87eac5ba8c84ea
tree3ad5f63ef8d047e4fe255cce049e102492a4f007
parent2c8de882158d6bf5204c9bb3dd662ebd858f253e
afs: Make it possible to find the volumes that are using a server

[ Upstream commit ca0e79a46097d54e4af46c67c852479d97af35bb ]

Make it possible to find the afs_volume structs that are using an
afs_server struct to aid in breaking volume callbacks.

The way this is done is that each afs_volume already has an array of
afs_server_entry records that point to the servers where that volume might
be found.  An afs_volume backpointer and a list node is added to each entry
and each entry is then added to an RCU-traversable list on the afs_server
to which it points.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Stable-dep-of: add117e48df4 ("afs: Fix the server_list to unuse a displaced server rather than putting it")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/cell.c
fs/afs/internal.h
fs/afs/server.c
fs/afs/server_list.c
fs/afs/vl_alias.c
fs/afs/volume.c