[PATCH] scripts : sync the var type between memory and print

2018-04-07 Thread Wenle Chen
From: Wenle Chen The %d in printf need get a int But the real type of these vars is unsigned. It may let some compilers show a warning. Signed-off-by: Wenle Chen --- scripts/recordmcount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/recordmcount.c b

[PATCH] scripts : sync the var type between memory and print

2018-04-17 Thread Wenle Chen
From: Wenle Chen The %d in printf need get a int But the real type of these vars is unsigned. It may let some compilers show a warning. Signed-off-by: Wenle Chen --- scripts/recordmcount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/recordmcount.c b

Re: [PATCH 2/2] NFS: Limit the number of retries

2020-11-04 Thread Wenle Chen
Trond Myklebust 於 2020/11/3 上午1:45 寫道: On Tue, 2020-11-03 at 00:24 +0800, Wenle Chen wrote:   We can't wait forever, even if the state is always delayed. Signed-off-by: Wenle Chen ---  fs/nfs/nfs4proc.c | 4 +++-  1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/f

Re: [PATCH 2/2] NFS: Limit the number of retries

2020-11-04 Thread Wenle Chen
Olga Kornievskaia 於 2020/11/4 下午9:22 寫道: On Wed, Nov 4, 2020 at 6:36 AM Wenle Chen wrote: Trond Myklebust 於 2020/11/3 上午1:45 寫道: On Tue, 2020-11-03 at 00:24 +0800, Wenle Chen wrote: We can't wait forever, even if the state is always delayed. Signed-off-by: Wenle Chen ---

[PATCH 0/2] NFS: Delay Retry Proposed Changes

2020-11-02 Thread Wenle Chen
Little modify for nfs4_lock_delegation_recall delay retry Wenle Chen (2): NFS: Reduce redundant comparison NFS: Limit the number of retries fs/nfs/nfs4proc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.29.1

[PATCH 1/2] NFS: Reduce redundant comparison

2020-11-02 Thread Wenle Chen
The err wouldn't be change after sleep. There is no need to compare err and -NFS4ERR_DELAY Signed-off-by: Wenle Chen --- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9e0ca9b2b210..f6b5dc792b33 100644 ---

[PATCH 2/2] NFS: Limit the number of retries

2020-11-02 Thread Wenle Chen
We can't wait forever, even if the state is always delayed. Signed-off-by: Wenle Chen --- fs/nfs/nfs4proc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index f6b5dc792b33..bb2316bf13f6 100644 --- a/fs/nfs/nfs4proc.c +++ b/f