summaryrefslogtreecommitdiff
path: root/lib/iomap.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-02 16:37:15 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 14:03:26 -0400
commitaa95edf309ef31e2df4a37ebf0e5c2ca2a6772ab (patch)
tree7b0fc80bfa5c7bc36ac0103e12353829899b4b4d /lib/iomap.c
parentba512c1bc3232124567a59a3995c773dc79716e8 (diff)
NFSv4/pnfs: Fix the layout barrier update
If we have multiple outstanding layoutget requests, the current code to update the layout barrier assumes that the outstanding layout stateids are updated in order. That's not necessarily the case. Instead of using the value of lo->plh_outstanding as a guesstimate for the window of values we need to accept, just wait to update the window until we're processing the last one. The intention here is just to ensure that we don't process 2^31 seqid updates without also updating the barrier. Fixes: 1bcf34fdac5f ("pNFS/NFSv4: Update the layout barrier when we schedule a layoutreturn") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'lib/iomap.c')
0 files changed, 0 insertions, 0 deletions