From: Ian Jackson Subject: Re: [PATCH] libxl: introduce an option for disabling the non-O_DIRECT workaround [and 1 more messages] Date: Thu, 28 Nov 2013 11:38:55 +0000 Message-ID: <21143.11087.826909.827676@mariner.uk.xensource.com> References: <1385466151-21481-1-git-send-email-ian.jackson@eu.citrix.com> <1385466151-21481-2-git-send-email-ian.jackson@eu.citrix.com> <20131126174617.GM2959@phenom.dumpdata.com> <5294E0E6.1070305@eu.citrix.com> <20131126181850.GB2917@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VlzwP-0004Ac-IN for xen-devel@lists.xenproject.org; Thu, 28 Nov 2013 11:39:29 +0000 In-Reply-To: <5294E0E6.1070305@eu.citrix.com>, <20131126181850.GB2917@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk , George Dunlap , xen-devel@lists.xenproject.org, Ian Campbell , Stefano Stabellini , alex@alex.org.uk List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Re: [Xen-devel] [PATCH] libxl: introduce an option for disabling the non-O_DIRECT workaround"): > Not everyone builds her own kernel from the latest release; until we can > be relatively sure that this fix has hit distros (including older > LTS-style ones), we have to deal with the fact that the O_DIRECT bug may > be present. The purpose of this flag is to enable you to turn it on > when you know it's safe -- for instance, if you're running a kernel with > this changeset. > > It is worth asking the question now though: Given that this has been > checked in, would it make sense to switch the polarity of this -- > default to O_DIRECT on and have a flag to allow people to switch it off? Surely if the kernel has been fixed, libxl should detect this and turn off the workaround automatically. The kernel should expose something that lets us tell. (If nothing else, we can use the version number, although that's really not ideal.) I don't think it's a good idea to change the default, at least for now. But maybe the tristate is a reasonable suggestion. Ian.