NFSv4.1: Clean up the removal of pnfs_layout_hdr from the server list
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 20 Sep 2012 21:31:43 +0000 (17:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:14 +0000 (16:03 -0400)
commit9c6263819f25254f2ed48f076b50096dd5893dfb
treed95527cbeba0d44973f286602a35ff2c21c811bd
parent6622c3ea059b2fed49924b74db41d1e0f065fbd3
NFSv4.1: Clean up the removal of pnfs_layout_hdr from the server list

Move the code into pnfs_free_layout_hdr(), and add checks to
get_layout_by_fh_locked to ensure that they don't reference a layout
that is being freed.

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