OSDN Git Service

pNFS/NFSv4: Update the layout barrier when we schedule a layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 21 Jan 2021 18:51:50 +0000 (13:51 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 25 Jan 2021 01:52:31 +0000 (20:52 -0500)
commit1bcf34fdac5f8c2fcd16796495db75744612ca27
tree1cab99b93656a44aaef9256a4d4cbc7287124f14
parent08bd8dbe88825760e953759d7ec212903a026c75
pNFS/NFSv4: Update the layout barrier when we schedule a layoutreturn

When we're scheduling a layoutreturn, we need to ignore any further
incoming layouts with sequence ids that are going to be affected by the
layout return.

Fixes: 44ea8dfce021 ("NFS/pnfs: Reference the layout cred in pnfs_prepare_layoutreturn()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c