2019-03-15 09:07:08

by Yihao Wu

[permalink] [raw]
Subject: Re: Why generic/089 fails for NFSv4

On 2019/3/14 4:46 PM, Yihao Wu wrote:
> 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
>

cc nfs list


2019-03-15 10:05:32

by Su, Yanjun

[permalink] [raw]
Subject: Re: Why generic/089 fails for NFSv4


On 2019/3/15 17:06, Yihao Wu wrote:
> On 2019/3/14 4:46 PM, Yihao Wu wrote:
>> 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

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

>> Thanks,
>> Yihao Wu
>>
> cc nfs list
>
>