NFSv4.1: put_layout_hdr can remove nfsi->layout
authorAndy Adamson <andros@netapp.com>
Tue, 1 Mar 2011 01:34:07 +0000 (01:34 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 11 Mar 2011 20:38:41 +0000 (15:38 -0500)
commitbf9c1387ca80deac792c9ecf1c64dfcc5d1cc768
tree4a06245d796db913a2a137d6498149e047a84283
parent6f78befc417dd7122249706b49520da29ba58451
NFSv4.1: put_layout_hdr can remove nfsi->layout

Prevents an Oops triggered by CB_LAYOUTRECALL and LAYOUTGET race on a
pnfs_layout_hdr first pnfs_layout_segment.

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