missing patches for v6.6-rc
Subsystems (2)
Jeff Layton
maintainerHi Anna,
There are a couple of client side patches that I think we want in v6.6, but that haven't shown up in linux-next yet. Do you still plan to take these from Dai and Scott?
[PATCH 1/1] NFS: Fix potential oops in nfs_inode_remove_request()
[PATCH v3 1/1] nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE op
Thanks,
Signature · 1 line
Jeff Layton <[email protected]>
Anna Schumaker
maintainerHi Jeff,
Quoted 6 lines · Jeff Layton
Hi Anna,
There are a couple of client side patches that I think we want in v6.6, but that haven't shown up in linux-next yet. Do you still plan to take these from Dai and Scott?
I've pushed out Dai's patch to my linux-next branch, and I can do another pull request before the end of the 6.6 cycle. Is Scott's patch still needed after your patch "nfs: decrement nrequests counter before releasing the req" which went into 6.6-rc5? If so, it doesn't apply cleanly on top of the current code so I'll need to fix it up.
Anna
Quoted 7 lines
[PATCH 1/1] NFS: Fix potential oops in
nfs_inode_remove_request()
[PATCH v3 1/1] nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE opThanks,
--
Jeff Layton <[email protected]>
Quoted 10 lines · Anna Schumaker
Hi Jeff,
Quoted 6 lines · Jeff Layton
Hi Anna,
There are a couple of client side patches that I think we want in v6.6, but that haven't shown up in linux-next yet. Do you still plan to take these from Dai and Scott?
Quoted 5 lines
I've pushed out Dai's patch to my linux-next branch, and I can do another pull request before the end of the 6.6 cycle. Is Scott's patch still needed after your patch "nfs: decrement nrequests counter before releasing the req" which went into 6.6-rc5? If so, it doesn't apply cleanly on top of the current code so I'll need to fix it up.
Yes, that patch is definitely needed.
Want me to send a current version?
Ben
Anna Schumaker
maintainerQuoted 19 lines · Benjamin Coddington
Quoted 10 lines · Anna Schumaker
Hi Jeff,
Quoted 6 lines · Jeff Layton
Hi Anna,
There are a couple of client side patches that I think we want in v6.6, but that haven't shown up in linux-next yet. Do you still plan to take these from Dai and Scott?
Quoted 5 lines
I've pushed out Dai's patch to my linux-next branch, and I can do another pull request before the end of the 6.6 cycle. Is Scott's patch still needed after your patch "nfs: decrement nrequests counter before releasing the req" which went into 6.6-rc5? If so, it doesn't apply cleanly on top of the current code so I'll need to fix it up.
Quoted 3 lines
Yes, that patch is definitely needed.
Want me to send a current version?
Sure! That would be great!
Anna
Quoted 3 lines
Ben
PATCH 1/1 NFS: Fix potential oops in nfs_inode_remove_request()
From: Scott Mayhew <[email protected]>
Once a folio's private data has been cleared, it's possible for another process to clear the folio->mapping (e.g. via invalidate_complete_folio2 or evict_mapping_folio), so it wouldn't be safe to call nfs_page_to_inode() after that.
--- fs/nfs/write.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/nfs/write.c +3 -1
@@ -788,6 +788,8 @@ static void nfs_inode_add_request(struct nfs_page *req)*/ static void nfs_inode_remove_request (struct nfs_page *req) { +struct nfs_inode *nfsi =NFS_I (nfs_page_to_inode (req)); +if (nfs_page_group_sync_on_bit (req,PG_REMOVE )) {struct folio *folio =nfs_page_to_folio (req->wb_head);struct address_space *mapping =folio_file_mapping (folio);
@@ -802,7 +804,7 @@ static void nfs_inode_remove_request(struct nfs_page *req) }if (test_and_clear_bit (PG_INODE_REF , &req->wb_flags)) { -atomic_long_dec (&NFS_I (nfs_page_to_inode (req))->nrequests); +atomic_long_dec (&nfsi->nrequests);nfs_release_request (req); } }
Signature · 1 line
2.41.0