Skip to contentSkip to conversation

Why generic/089 fails for NFSv4

DISCUSSION Yihao Wu 2 participants 3 messages Mar 14, 2019 – Mar 15, 2019

Subsystems (2)
lore
Share & tools
lore

Yihao Wu

author
#0 lore raw

Hi, all

Sorry to bother you.

lock_mtab in xfstests/src/t_mtab.c waits only for LOCK_TIMEOUT, which is 10. After that it emits an error message. However when NFSv4 client fails to lock a file in nfs4_retry_setlk (eg. locking conflict), it backs off for 30s before retrying. So generic/089 frequently fails for NFSv4.

I'm wondering if there's a workaround to this problem. My kernel version is 4.19.24

Thanks,
Yihao Wu

author
#1 lore raw
Quoted 9 lines · Yihao Wu

Hi, all

Sorry to bother you.

lock_mtab in xfstests/src/t_mtab.c waits only for LOCK_TIMEOUT, which is 10. After that it emits an error message. However when NFSv4 client fails to lock a file in nfs4_retry_setlk (eg. locking conflict), it backs off for 30s before retrying. So generic/089 frequently fails for NFSv4.

Quoted 6 lines

I'm wondering if there's a workaround to this problem. My kernel version is 4.19.24

Thanks,
Yihao Wu

cc nfs list

#2 lore raw
Quoted 5 lines · Yihao Wu
Quoted 4 lines · Yihao Wu

Hi, all

Sorry to bother you.

Quoted 7 lines
Quoted 7 lines

lock_mtab in xfstests/src/t_mtab.c waits only for LOCK_TIMEOUT, which is 10. After that it emits an error message. However when NFSv4 client fails to lock a file in nfs4_retry_setlk (eg. locking conflict), it backs off for 30s before retrying. So generic/089 frequently fails for NFSv4.

I'm wondering if there's a workaround to this problem. My kernel version is 4.19.24

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/nfs?h=v4.20&id=a61246c96195fc5f7500f6842e883b9eb1567d8d

Maybe this patch can help u.

Thanks

Su

Quoted 6 lines
Quoted 3 lines

Thanks,
Yihao Wu

cc nfs list