]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/nfs/pnfs.c
NFSv4.1: Get rid of the NFS_LAYOUT_DESTROYED state
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 18:48:04 +0000 (14:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:16 +0000 (16:03 -0400)
commit8006bfba36d42b6976ed92979f51e5f9bef2625c
tree83b5c3761408b6cbfef4112431ef466b5392f909
parent579342785f7069d32e9637ef30d59c4256dcec3d
NFSv4.1: Get rid of the NFS_LAYOUT_DESTROYED state

We already have a mechanism for blocking LAYOUTGET by means of the
plh_block_lgets counter. The only "service" that NFS_LAYOUT_DESTROYED
provides at this point is to block layoutget once the layout segment
list is empty, which basically means that you have to wait until
the pnfs_layout_hdr is destroyed before you can do pNFS on that file
again.

This patch enables the reuse of the pnfs_layout_hdr if the layout
segment list is empty.

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