]> 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>
Fri, 21 Sep 2012 23:22:07 +0000 (19:22 -0400)
commite033bad9752ed6df4e2e8cee2cf1c7f4666120a9
treed01ce1c0cc5e982723c3f6382308d269215a0790
parent38239cb898db28dc67088c1e8e2310c054b68798
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