Skip to contentSkip to conversation

missing patches for v6.6-rc

PATCH New Jeff Layton 3 participants 5 messages Oct 10, 2023 – Oct 11, 2023

Subsystems (2)
lore
Share & tools
lore

Jeff Layton

author maintainer
#0 lore raw

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?

[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]>
maintainer
#1 lore raw

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?

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 op

Thanks,
--
Jeff Layton <[email protected]>

#2 lore raw
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

maintainer
#3 lore raw
Quoted 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

#4 lore raw

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.

Fixes 0c493b5cf16e ("NFS: Convert buffered writes to use folios")
---
 fs/nfs/write.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/nfs/write.c +3 -1
index 7720b5e43014..9d82d50ce0b1 100644
@@ -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