From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Tagging Xen 4.0.0 first release candidate / pygrub dom0 caching bug Date: Thu, 21 Jan 2010 23:01:15 +0200 Message-ID: <20100121210115.GY2861@reaktio.net> References: <20100106135005.GG25902@reaktio.net> <20100121122850.GT2861@reaktio.net> <1264099473.12544.3736.camel@agari.van.xensource.com> <1264101384.12544.3765.camel@agari.van.xensource.com> <1264102647.21707.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1264102647.21707.2.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Keir Fraser , Daniel Stodden List-Id: xen-devel@lists.xenproject.org On Thu, Jan 21, 2010 at 07:37:27PM +0000, Ian Campbell wrote: > On Thu, 2010-01-21 at 19:16 +0000, Daniel Stodden wrote:=20 > > On Thu, 2010-01-21 at 13:44 -0500, Daniel Stodden wrote: > > > On Thu, 2010-01-21 at 07:28 -0500, Pasi K=E4rkk=E4inen wrote: > > > > On Wed, Jan 06, 2010 at 03:50:05PM +0200, Pasi K=E4rkk=E4inen wro= te: > > > > > On Tue, Jan 05, 2010 at 06:42:05AM +0000, Keir Fraser wrote: > > > > > > I plan to tag -rc1 later this week. If you have any outstandi= ng patches, > > > > > > please send them to the list now. > > > > > >=20 > > > > >=20 > > > > > Hmm.. I just remembered this pygrub bug: > > > > > https://bugzilla.redhat.com/show_bug.cgi?id=3D466681 > > > > >=20 > > > > > pygrub doesn't use O_DIRECT so sometimes it gets old informatio= n > > > > > from dom0 kernel cache - and fails to use the updated domU grub= .conf. > > > > >=20 > > > > > Redhat seems to have patches available for testing.. not for > > > > > xen-unstable though. > > > > >=20 > > > > > I've personally hit this bug many times. > > > > >=20 > > > >=20 > > > > It seems Redhat guys have a fix available.. they fixed the proble= m by=20 > > > > patching dom0 kernel blkback. > > > >=20 > > > > More details about the fix here: > > > > https://bugzilla.redhat.com/show_bug.cgi?id=3D466681 > > > >=20 > > > > Should this be applied to 2.6.18-xen and pv_ops dom0 kernels aswe= ll?=20 > > >=20 > > > Only to 2.6.18.=20 > > >=20 > > > It's obsolete after 2.6.27. > > > O_DIRECT gained page cache invalidation in the meantime. > >=20 > > Aiiee, sorry. I guess this one only applies to tapdisks. The page cac= he > > invalidation only covers the filemap. That obviously won't fix blkbac= k > > bios on raw devices. > >=20 > > Ian Campbell recently noted he came across a different fix, which add= s > > direct-io to e2fsprogs. >=20 > I noted the thread because the root problem seemed interesting and > worthy of investigation, but I should have made it clear that I didn't > think messing with direct-io in e2fsprogs was the correct solution. I > think the majority of the participants in the thread thought that too. > The biggest problem is that it only solves the issue in the one specifi= c > case of things which use e2fsprogs and not in general, we can't go roun= d > adding O_DIRECT to everything which might be used to access these disks= . >=20 Yeah, it should be fixed in blkback.. who knows, some users might be usin= g=20 other tools in dom0 aswell, not just pygrub. -- Pasi