public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] nfsstat01: Update client RPC calls for kernel 6.9
@ 2024-06-20 11:11 Petr Vorel
  2024-06-20 11:13 ` Petr Vorel
  0 siblings, 1 reply; 24+ messages in thread
From: Petr Vorel @ 2024-06-20 11:11 UTC (permalink / raw)
  To: ltp; +Cc: linux-nfs, NeilBrown, Josef Bacik, Trond Myklebust

6.9 moved client RPC calls to namespace (likely 1548036ef1204 ("nfs:
make the rpc_stat per net namespace") [1]), thus update test.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1548036ef1204df65ca5a16e8b199c858cb80075

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/network/nfs/nfsstat01/nfsstat01.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/testcases/network/nfs/nfsstat01/nfsstat01.sh b/testcases/network/nfs/nfsstat01/nfsstat01.sh
index c2856eff1..a12b80fad 100755
--- a/testcases/network/nfs/nfsstat01/nfsstat01.sh
+++ b/testcases/network/nfs/nfsstat01/nfsstat01.sh
@@ -15,7 +15,12 @@ get_calls()
 	local calls opt
 
 	[ "$name" = "rpc" ] && opt="r" || opt="n"
-	! tst_net_use_netns && [ "$nfs_f" != "nfs" ] && type="rhost"
+
+	if tst_net_use_netns; then
+		tst_kvcmp -ge "6.9" && [ "$nfs_f" = "nfs" ] && type="rhost"
+	else
+		[ "$nfs_f" != "nfs" ] && type="rhost"
+	fi
 
 	if [ "$type" = "lhost" ]; then
 		calls="$(grep $name /proc/net/rpc/$nfs_f | cut -d' ' -f$field)"
-- 
2.45.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 24+ messages in thread
* [LTP] [PATCH 1/1] nfsstat01: Update client RPC calls for kernel 6.9
@ 2024-07-02 16:54 Calum Mackay via ltp
  2024-07-02 22:55 ` Calum Mackay via ltp
  0 siblings, 1 reply; 24+ messages in thread
From: Calum Mackay via ltp @ 2024-07-02 16:54 UTC (permalink / raw)
  To: Petr Vorel
  Cc: Linux NFS Mailing List, NeilBrown, Sherry Yang, Josef Bacik, anna,
	Trond Myklebust, Calum Mackay, kernel-team, ltp

hi Petr,

I noticed your LTP patch [1][2] which adjusts the nfsstat01 test on v6.9 
kernels, to account for Josef's changes [3], which restrict the NFS/RPC 
stats per-namespace.

I see that Josef's changes were backported, as far back as longterm 
v5.4, so your check for kernel version "6.9" in the test may need to be 
adjusted, if LTP is intended to be run on stable kernels?

best wishes,
calum.


[1] https://lore.kernel.org/ltp/20240620111129.594449-1-pvorel@suse.cz/
[2] 
https://patchwork.ozlabs.org/project/ltp/patch/20240620111129.594449-1-pvorel@suse.cz/
[3] 
https://lore.kernel.org/linux-nfs/cover.1708026931.git.josef@toxicpanda.com/

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-08-15  6:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 11:11 [LTP] [PATCH 1/1] nfsstat01: Update client RPC calls for kernel 6.9 Petr Vorel
2024-06-20 11:13 ` Petr Vorel
  -- strict thread matches above, loose matches on Subject: below --
2024-07-02 16:54 Calum Mackay via ltp
2024-07-02 22:55 ` Calum Mackay via ltp
2024-07-05 14:19   ` Chuck Lever III via ltp
2024-07-06  7:11     ` Greg KH
2024-07-06  7:46       ` Sherry Yang via ltp
2024-07-08 10:36         ` Greg KH
2024-07-08 17:49           ` Chuck Lever III via ltp
2024-07-09  6:48             ` Cyril Hrubis
2024-07-11 21:18             ` Jeff Layton
2024-07-11 22:58               ` NeilBrown
2024-07-12  0:40                 ` Jeff Layton
2024-07-12  6:12                   ` NeilBrown
2024-07-12 10:16                     ` Jeff Layton
2024-07-12 11:07                       ` Petr Vorel
2024-07-12 14:03                         ` Chuck Lever III via ltp
2024-07-12 11:13                       ` NeilBrown
2024-08-14 20:55                         ` Petr Vorel
2024-08-14 22:17                           ` NeilBrown
2024-08-15  6:53                             ` Petr Vorel
2024-07-12 13:45             ` Thorsten Leemhuis
2024-07-12 14:07               ` Jeff Layton
2024-07-08  4:02     ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox