We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7abea1e commit fb94d76Copy full SHA for fb94d76
fs/nfsd/nfs4state.c
@@ -1037,14 +1037,18 @@ static void
1037
free_ol_stateid_reaplist(struct list_head *reaplist)
1038
{
1039
struct nfs4_ol_stateid *stp;
1040
+ struct nfs4_file *fp;
1041
1042
might_sleep();
1043
1044
while (!list_empty(reaplist)) {
1045
stp = list_first_entry(reaplist, struct nfs4_ol_stateid,
1046
st_locks);
1047
list_del(&stp->st_locks);
1048
+ fp = stp->st_stid.sc_file;
1049
stp->st_stid.sc_free(&stp->st_stid);
1050
+ if (fp)
1051
+ put_nfs4_file(fp);
1052
}
1053
1054
0 commit comments