nfs4.1: fix several problems with _pnfs_return_layout
authorFred Isaman <iisaman@netapp.com>
Mon, 13 Jun 2011 22:54:53 +0000 (18:54 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 15:24:30 +0000 (11:24 -0400)
_pnfs_return_layout had the following problems:

- it did not call pnfs_free_lseg_list on all paths
- it unintentionally did a forgetful return when there was no outstanding io
- it raced with concurrent LAYOUTGETS

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c

Simple merge
diff --cc fs/nfs/pnfs.c
Simple merge