Commit f666a75c authored by Yu Hsiang Huang's avatar Yu Hsiang Huang Committed by Greg Kroah-Hartman
Browse files

nfsd: Prevent truncation of an unlinked inode from blocking access to its directory



[ Upstream commit e5d74a2d ]

Truncation of an unlinked inode may take a long time for I/O waiting, and
it doesn't have to prevent access to the directory. Thus, let truncation
occur outside the directory's mutex, just like do_unlinkat() does.

Signed-off-by: default avatarYu Hsiang Huang <nickhuang@synology.com>
Signed-off-by: default avatarBing Jing Chang <bingjingc@synology.com>
Signed-off-by: default avatarRobbie Ko <robbieko@synology.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e7bbdd7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment