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

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: Yu Hsiang Huang <nickhuang@synology.com>
Signed-off-by: Bing Jing Chang <bingjingc@synology.com>
Signed-off-by: Robbie Ko <robbieko@synology.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Yu Hsiang Huang 2021-05-14 11:58:29 +08:00 • committed by J. Bruce Fields
commit e5d74a2d0e