Re: [PATCH] afs: Fix deadlock between writeback and truncate

2020-10-07 Thread David Howells
David Howells wrote: > (1) Use the vnode validate_lock to mediate access between afs_setattr() > and afs_writepages(): Hmmm... I wonder if the problem can occur between afs_setattr() and afs_writepage() too. David

[PATCH] afs: Fix deadlock between writeback and truncate

2020-10-07 Thread David Howells
The afs filesystem has a lock[*] that it uses to serialise I/O operations going to the server (vnode->io_lock), as the server will only perform one modification operation at a time on any given file or directory. This prevents the the filesystem from filling up all the call slots to a server with