• Trond Myklebust's avatar
    NFSv4.1: Get rid of redundant NFS4CLNT_LAYOUTRECALL tests · a59c30ac
    Trond Myklebust authored
    The NFS4CLNT_LAYOUTRECALL tests in pnfs_layout_process and
    pnfs_update_layout are redundant.
    
    In the case of a bulk layout recall, we're always testing for
    the NFS_LAYOUT_BULK_RECALL flay anyway.
    In the case of a file or segment recall, the call to
    pnfs_set_layout_stateid() updates the layout_header 'barrier'
    sequence id, which triggers the test in pnfs_layoutgets_blocked()
    and is less race-prone than NFS4CLNT_LAYOUTRECALL anyway.
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    a59c30ac
pnfs.c 40.5 KB