• Christoph Hellwig's avatar
    pnfs: avoid using stale stateids after layoutreturn · 47abadef
    Christoph Hellwig authored
    After we issued a layoutreturn operations the may free the layout stateid
    and will thus cause bad stateid error when the client uses it again.
    
    We currently try to avoid this case by chosing the open stateid if not
    lsegs are present for this inode.  But various places can hold refererence
    on lsegs and thus cause the list not to be empty shortly after a layout
    return.  Add an explicit flag to mark the current layout stateid invalid
    and force usage of the openstateid after we did a full file layoutreturn.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
    47abadef
pnfs.c 50.5 KB