afs: Apply server breaks to mmap'd files in the call processor
authorDavid Howells <dhowells@redhat.com>
Tue, 7 Nov 2023 17:59:33 +0000 (17:59 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 1 Jan 2024 16:37:27 +0000 (16:37 +0000)
commit32222f09782f1894fcfc37f6505ca676a6f4d1d6
tree1248a3f6afb42e60625076444eac20e6eb9d1aeb
parentdfa0a44946e29bd38c054df04ca7a3f8143dafe7
afs: Apply server breaks to mmap'd files in the call processor

Apply server breaks to mmap'd files that are being used from that server
from the call processor work function rather than punting it off to a
workqueue.  The work item, afs_server_init_callback(), then bumps each
individual inode off to its own work item introducing a potentially lengthy
delay.  This reduces that delay at the cost of extending the amount of time
we delay replying to the CB.InitCallBack3 notification RPC from the server.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
fs/afs/callback.c
fs/afs/cell.c
fs/afs/internal.h
fs/afs/server.c
fs/afs/server_list.c
include/trace/events/afs.h