Skip to content
Commit 9ed900b1 authored by David Howells's avatar David Howells
Browse files

afs: Push the net ns pointer to more places



Push the network namespace pointer to more places in AFS, including the
afs_server structure (which doesn't hold a ref on the netns).

In particular, afs_put_cell() now takes requires a net ns parameter so that
it can safely alter the netns after decrementing the cell usage count - the
cell will be deallocated by a background thread after being cached for a
period, which means that it's not safe to access it after reducing its
usage count.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 49566f6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment