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 9e8f324 commit 8e5419dCopy full SHA for 8e5419d
fs/nfs/write.c
@@ -579,8 +579,10 @@ static struct nfs_page *nfs_lock_and_join_requests(struct folio *folio)
579
580
while (!nfs_lock_request(head)) {
581
ret = nfs_wait_on_request(head);
582
- if (ret < 0)
+ if (ret < 0) {
583
+ nfs_release_request(head);
584
return ERR_PTR(ret);
585
+ }
586
}
587
588
/* Ensure that nobody removed the request before we locked it */
0 commit comments