Re: regression in referrals resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Trond,

are you considering to push this fix upstream?

Tigran.

On Wed, Nov 9, 2011 at 11:25 AM, Tigran Mkrtchyan
<tigran.mkrtchyan@xxxxxxx> wrote:
> Hi Trond,
>
> your fix is still not in bugfixes branch yet....
>
>
> Regards,
>   Tigran.
>
> On Mon, Nov 7, 2011 at 10:18 PM, Tigran Mkrtchyan
> <tigran.mkrtchyan@xxxxxxx> wrote:
>> On Mon, Nov 7, 2011 at 9:58 PM, Trond Myklebust
>> <Trond.Myklebust@xxxxxxxxxx> wrote:
>>> On Mon, 2011-11-07 at 21:29 +0100, Tigran Mkrtchyan wrote:
>>>> Hi,
>>>>
>>>>
>>>> today we was running test with referrals and notice that 'current'
>>>> 3.1+ has a regression.
>>>> The referrals are resolved, but client returns IO error :
>>>
>>> Doh! I expect that the following should fix it...
>>
>> In did!
>>
>> Thanks,
>>   Tigran.
>>>
>>> Thanks
>>>  Trond
>>> 8<--------------------------------------------------------------------------
>>> From 91207dc6fd4fbe5f758dd2558e927bcd0c411581 Mon Sep 17 00:00:00 2001
>>> From: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
>>> Date: Mon, 7 Nov 2011 15:50:32 -0500
>>> Subject: [PATCH] NFS: Fix a regression in the referral code
>>>
>>> Fix a regression that was introduced by commit
>>> 0c2e53f11a6dae9e3af5f50f5ad0382e7c3e0cfa (NFS: Remove the unused
>>> "lookupfh()" version of nfs4_proc_lookup()).
>>>
>>> In the case where the lookup gets an NFS4ERR_MOVED, we want to return
>>> the result of nfs4_get_referral(). Instead, that value is getting
>>> clobbered by the call to nfs4_handle_exception()...
>>>
>>> Reported-by: Tigran Mkrtchyan <tigran.mkrtchyan@xxxxxxx>
>>> Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
>>> ---
>>>  fs/nfs/nfs4proc.c |    3 +--
>>>  1 files changed, 1 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
>>> index 069cb80..be2bbac 100644
>>> --- a/fs/nfs/nfs4proc.c
>>> +++ b/fs/nfs/nfs4proc.c
>>> @@ -2464,8 +2464,7 @@ static int nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, struct qst
>>>                case -NFS4ERR_BADNAME:
>>>                        return -ENOENT;
>>>                case -NFS4ERR_MOVED:
>>> -                       err = nfs4_get_referral(dir, name, fattr, fhandle);
>>> -                       break;
>>> +                       return nfs4_get_referral(dir, name, fattr, fhandle);
>>>                case -NFS4ERR_WRONGSEC:
>>>                        nfs_fixup_secinfo_attributes(fattr, fhandle);
>>>                }
>>> --
>>> 1.7.7
>>>
>>>
>>> --
>>> Trond Myklebust
>>> Linux NFS client maintainer
>>>
>>> NetApp
>>> Trond.Myklebust@xxxxxxxxxx
>>> www.netapp.com
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux