|
@@ -1037,6 +1037,7 @@ static void
|
|
free_ol_stateid_reaplist(struct list_head *reaplist)
|
|
free_ol_stateid_reaplist(struct list_head *reaplist)
|
|
{
|
|
{
|
|
struct nfs4_ol_stateid *stp;
|
|
struct nfs4_ol_stateid *stp;
|
|
|
|
+ struct nfs4_file *fp;
|
|
|
|
|
|
might_sleep();
|
|
might_sleep();
|
|
|
|
|
|
@@ -1044,7 +1045,10 @@ free_ol_stateid_reaplist(struct list_head *reaplist)
|
|
stp = list_first_entry(reaplist, struct nfs4_ol_stateid,
|
|
stp = list_first_entry(reaplist, struct nfs4_ol_stateid,
|
|
st_locks);
|
|
st_locks);
|
|
list_del(&stp->st_locks);
|
|
list_del(&stp->st_locks);
|
|
|
|
+ fp = stp->st_stid.sc_file;
|
|
stp->st_stid.sc_free(&stp->st_stid);
|
|
stp->st_stid.sc_free(&stp->st_stid);
|
|
|
|
+ if (fp)
|
|
|
|
+ put_nfs4_file(fp);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|