From: Benny Halevy <bhalevy@panasas.com>
To: Fred Isaman <iisaman@umich.edu>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 06/19] SQUASHME: pnfs-submit: merge pnfs4_read_done into nfs4_read_done - part 3
Date: Thu, 17 Jun 2010 11:26:16 -0400 [thread overview]
Message-ID: <4C1A3E98.5070004@panasas.com> (raw)
In-Reply-To: <AANLkTikvo8qP_B23suRB-lKNCcCQv4W6Vw8kBmPC_6SX-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Jun. 17, 2010, 11:15 -0400, Fred Isaman <iisaman@umich.edu> wrote:
> On Thu, Jun 17, 2010 at 10:49 AM, Benny Halevy <bhalevy@panasas.com> wrote:
>> Do not renew the data server lease.
>>
>> Signed-off-by: Benny Halevy <bhalevy@panasas.com>
>> ---
>> fs/nfs/nfs4proc.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
>> index 77b7182..e8b0f33 100644
>> --- a/fs/nfs/nfs4proc.c
>> +++ b/fs/nfs/nfs4proc.c
>> @@ -3164,7 +3164,7 @@ static int nfs4_read_done(struct rpc_task *task, struct nfs_read_data *data)
>> }
>>
>> nfs_invalidate_atime(data->inode);
>> - if (task->tk_status > 0)
>> + if (task->tk_status > 0 && client == server->nfs_client)
>
> Will this test work if there is a dual role MDS/DS?
>
The filehandle determines the "DS personality"
as per 13.6. Operations Sent to NFSv4.1 Data Servers
so the dual role server should act no different than any
other DS with this respect.
Benny
> Fred
>
>> renew_lease(server, data->timestamp);
>> return 0;
>> }
>> --
>> 1.6.4.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
next prev parent reply other threads:[~2010-06-17 15:26 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 14:47 [PATCH 0/19]: merge pnfs client ops into nfs4's Benny Halevy
2010-06-17 14:48 ` [PATCH 01/19] SQUASHME: pnfs-submit: merge pnfs4_proc_setattr into nfs4_proc_setattr Benny Halevy
2010-06-17 15:00 ` Fred Isaman
[not found] ` <AANLkTika4BAGrDg0CnUPRy9Qji6rThr5zcZ0S8ciAr29-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-17 15:12 ` Benny Halevy
2010-06-17 14:48 ` [PATCH 02/19] SQUASHME: pnfs4_read_done status variable is unused Benny Halevy
2010-06-17 14:48 ` [PATCH 03/19] SQUASHME: pnfs-submit: optionally pass nfs_client to nfs4_async_handle_error Benny Halevy
2010-06-17 14:48 ` [PATCH 04/19] SQUASHME: pnfs-submit: merge pnfs4_read_done into nfs4_read_done - part 1 Benny Halevy
2010-06-17 15:09 ` Fred Isaman
2010-06-17 14:49 ` [PATCH 05/19] SQUASHME: pnfs-submit: merge pnfs4_read_done into nfs4_read_done - part 2 Benny Halevy
2010-06-17 14:49 ` [PATCH 06/19] SQUASHME: pnfs-submit: merge pnfs4_read_done into nfs4_read_done - part 3 Benny Halevy
2010-06-17 15:15 ` Fred Isaman
[not found] ` <AANLkTikvo8qP_B23suRB-lKNCcCQv4W6Vw8kBmPC_6SX-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-17 15:26 ` Benny Halevy [this message]
2010-06-17 14:49 ` [PATCH 07/19] SQUASHME: pnfs-submit: get rid of pnfs4_read_done Benny Halevy
2010-06-17 14:49 ` [PATCH 08/19] SQUASHME: pnfs-submit: merge pnfs4_write_done into nfs4_write_done - part 1 Benny Halevy
2010-06-17 14:49 ` [PATCH 09/19] SQUASHME: pnfs-submit: merge pnfs4_write_done into nfs4_write_done - part 2 Benny Halevy
2010-06-17 15:19 ` Fred Isaman
[not found] ` <AANLkTimHng4urMH5CTn68aZJ_NKIasCH6VJOTCI-2zRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-17 15:27 ` Benny Halevy
2010-06-17 14:49 ` [PATCH 10/19] SQUASHME: pnfs-submit: merge pnfs4_write_done into nfs4_write_done - part 3 Benny Halevy
2010-06-17 14:50 ` [PATCH 11/19] SQUASHME: pnfs-submit: merge pnfs4_write_done into nfs4_write_done - part 4 Benny Halevy
2010-06-17 14:50 ` [PATCH 12/19] SQUASHME: pnfs-submit: get rid of pnfs4_write_done Benny Halevy
2010-06-17 14:50 ` [PATCH 13/19] SQUASHME: pnfs-submit: merge pnfs4_commit_done into nfs4_commit_done - part 1 Benny Halevy
2010-06-17 14:50 ` [PATCH 14/19] SQUASHME: pnfs-submit: merge pnfs4_commit_done into nfs4_commit_done - part 2 Benny Halevy
2010-06-17 14:50 ` [PATCH 15/19] SQUASHME: pnfs-submit: merge pnfs4_commit_done into nfs4_commit_done - part 3 Benny Halevy
2010-06-17 14:51 ` [PATCH 16/19] SQUASHME: pnfs-submit: get rid of pnfs4_commit_done Benny Halevy
2010-06-17 14:51 ` [PATCH 17/19] SQUASHME: pnfs-submit: merge pnfs4_proc_write_setup into nfs4_proc_write_setup Benny Halevy
2010-06-17 14:51 ` [PATCH 18/19] SQUASHME: pnfs-submit: merge pnfs4_proc_commit_setup into nfs4_proc_commit_setup Benny Halevy
2010-06-17 14:51 ` [PATCH 19/19] SQUASHME: pnfs-submit: get rid of pnfs_v4_clientops Benny Halevy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C1A3E98.5070004@panasas.com \
--to=bhalevy@panasas.com \
--cc=iisaman@umich.edu \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox