From: J. Bruce Fields Date: Fri, 13 Mar 2009 20:02:59 +0000 (-0400) Subject: nfsd4: don't do lookup within readdir in recovery code X-Git-Tag: v2.6.30-rc1~183^2~50 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=05f4f678b0511a24795a017b5332455077be3b1c;hp=05f4f678b0511a24795a017b5332455077be3b1c nfsd4: don't do lookup within readdir in recovery code The main nfsd code was recently modified to no longer do lookups from withing the readdir callback, to avoid locking problems on certain filesystems. This (rather hacky, and overdue for replacement) NFSv4 recovery code has the same problem. Fix it to build up a list of names (instead of dentries) and do the lookups afterwards. Reported symptoms were a deadlock in the xfs code (called from nfsd4_recdir_load), with /var/lib/nfs on xfs. Signed-off-by: J. Bruce Fields Reported-by: David Warren ---