From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Staubach Subject: Re: nfsd_rename() multiple export problem Date: Fri, 31 Jul 2009 09:43:49 -0400 Message-ID: <4A72F515.9070006@redhat.com> References: <006c01ca115b$4a5808e0$df081aa0$@com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-fsdevel@vger.kernel.org To: Boris Zuckerman Return-path: Received: from mx2.redhat.com ([66.187.237.31]:56406 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbZGaOpk (ORCPT ); Fri, 31 Jul 2009 10:45:40 -0400 In-Reply-To: <006c01ca115b$4a5808e0$df081aa0$@com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Boris Zuckerman wrote: > Hi, >=20 > =20 >=20 > This is probably a question for Peter Staubach. However, may be someb= ody > else can help me too=85 >=20 > =20 >=20 > Once in a while under heavy load nfsd returns a NFSERR_XDEV from rena= me > checking following condition: >=20 > =20 >=20 > err =3D (rqstp->rq_vers =3D=3D 2) ? nfserr_acces : nfserr_xdev; >=20 > if (ffhp->fh_export !=3D tfhp->fh_export) >=20 > goto out; >=20 > =20 >=20 > Note that several lines later the similar check looks like this: >=20 > =20 >=20 > host_err =3D -EXDEV; >=20 > if (ffhp->fh_export->ex_path.mnt !=3D tfhp->fh_export->ex_path.= mnt) >=20 > goto out_dput_new; >=20 > =20 >=20 > As you can see the code is not making any longer assumptions that > fh_export must match, but rather is checking ex_path.mnt. >=20 > We reproduced the problem in-house and got following information: the > source and the target directories are the same; Ibrix resolved them t= o > the same dentry. >=20 > However, there are 2 different fh_exports. I noticed that one of them > has expiry_time =3D 0x0 and another has expiry_time =3D 0x4a6aee6d >=20 > Is it significant? Below is the complete dump of exports and svc_fh > structurs. Please, let me know if you need more information. >=20 > I have the crash dump and can dig out anything you need. >=20 What version of the Linux kernel are you using? Thanx... ps -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html