|
@@ -273,7 +273,6 @@ static u32 initiate_file_draining(struct nfs_client *clp,
|
|
rv = pnfs_check_callback_stateid(lo, &args->cbl_stateid);
|
|
rv = pnfs_check_callback_stateid(lo, &args->cbl_stateid);
|
|
if (rv != NFS_OK)
|
|
if (rv != NFS_OK)
|
|
goto unlock;
|
|
goto unlock;
|
|
- pnfs_set_layout_stateid(lo, &args->cbl_stateid, true);
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* Enforce RFC5661 Section 12.5.5.2.1.5 (Bulk Recall and Return)
|
|
* Enforce RFC5661 Section 12.5.5.2.1.5 (Bulk Recall and Return)
|
|
@@ -283,6 +282,7 @@ static u32 initiate_file_draining(struct nfs_client *clp,
|
|
goto unlock;
|
|
goto unlock;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ pnfs_set_layout_stateid(lo, &args->cbl_stateid, true);
|
|
switch (pnfs_mark_matching_lsegs_return(lo, &free_me_list,
|
|
switch (pnfs_mark_matching_lsegs_return(lo, &free_me_list,
|
|
&args->cbl_range,
|
|
&args->cbl_range,
|
|
be32_to_cpu(args->cbl_stateid.seqid))) {
|
|
be32_to_cpu(args->cbl_stateid.seqid))) {
|