]> git.itanic.dy.fi Git - linux-stable/commit
fs/9p: mitigate inode collisions
authorEric Van Hensbergen <ericvh@kernel.org>
Mon, 15 Apr 2024 20:24:37 +0000 (20:24 +0000)
committerEric Van Hensbergen <ericvh@kernel.org>
Mon, 22 Apr 2024 15:34:27 +0000 (15:34 +0000)
commitd05dcfdf5e1659b2949d13060284eff3888b644e
treea939610972e373a47c85686b68061acea929b5d0
parented30a4a51bb196781c8058073ea720133a65596f
 fs/9p: mitigate inode collisions

Detect and mitigate inode collsions that now occur since we
fixed 9p generating duplicate inode structures.  Underlying
cause of these appears to be a race condition between reuse
of inode numbers in underlying file system and cleanup of
inode numbers in the client.  Enabling caching
makes this much more likely to happen as it increases cleanup
latency due to writebacks.

Reported-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
fs/9p/v9fs.h
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
fs/9p/vfs_super.c