]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 24 Sep 2012 17:24:30 +0000 (13:24 -0400)
commiteac017028624debfa33c7037a947e4df4615b5e8
tree51a4154f87b07fa163dc45a6ff4e209993163c7c
parent7e1387379d7d816cc8565a5b4ef06593f6d35ae6
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