NFS: fix umount of pnfs filesystems
authorWeston Andros Adamson <dros@netapp.com>
Wed, 1 Jun 2011 01:46:50 +0000 (21:46 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 15:23:02 +0000 (11:23 -0400)
commit9e3bd4e24e94d60d2e0762e919aab6c9a7fc0c5b
tree61ac70f49e793494dee1196dae55ac0c19036410
parent3f303103b884ca577908d3e5c0650ad12e40c586
NFS: fix umount of pnfs filesystems

Unmounting a pnfs filesystem hangs using filelayout and possibly others.
This fixes the use of the rcu protected node by making use of a new 'tmpnode'
for the temporary purge list. Also, the spinlock shouldn't be held when calling
synchronize_rcu().

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.h
fs/nfs/pnfs_dev.c