Why generic/089 fails for NFSv4
Subsystems (2)
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
Quoted 9 lines · Yihao Wu
Hi, all
Sorry to bother you.
lock_mtabinxfstests/src/t_mtab.cwaits only forLOCK_TIMEOUT, which is 10. After that it emits an error message. However when NFSv4 client fails to lock a file innfs4_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
Quoted 5 lines · Yihao Wu
Quoted 4 lines · Yihao Wu
Hi, all
Sorry to bother you.
Quoted 7 lines
Quoted 7 lines
lock_mtabinxfstests/src/t_mtab.cwaits only forLOCK_TIMEOUT, which is 10. After that it emits an error message. However when NFSv4 client fails to lock a file innfs4_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
Maybe this patch can help u.
Thanks
Su
Quoted 6 lines
Quoted 3 lines
Thanks,
Yihao Wucc nfs list