afs: Don't assert on unpurgeable server records
authorDavid Howells <dhowells@redhat.com>
Thu, 15 Oct 2020 08:02:25 +0000 (09:02 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 16 Oct 2020 13:39:34 +0000 (14:39 +0100)
commit7530d3eb3dcf1a30750e8e7f1f88b782b96b72b8
treec401bd777e982a5f939c1906756ea9192852f5fc
parentdca54a7bbb8ca9148ae10d60c66c926e222a9c4b
afs: Don't assert on unpurgeable server records

Don't give an assertion failure on unpurgeable afs_server records - which
kills the thread - but rather emit a trace line when we are purging a
record (which only happens during network namespace removal or rmmod) and
print a notice of the problem.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/server.c
include/trace/events/afs.h