Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965247AbXBTQHJ (ORCPT ); Tue, 20 Feb 2007 11:07:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965243AbXBTQHI (ORCPT ); Tue, 20 Feb 2007 11:07:08 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:56148 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965247AbXBTQHG (ORCPT ); Tue, 20 Feb 2007 11:07:06 -0500 Subject: Re: [PATCH] aio: propogate post-EIOCBQUEUED errors to completion event From: Arjan van de Ven To: Trond Myklebust Cc: Benjamin LaHaise , Chris Mason , "Ananiev, Leonid I" , Zach Brown , linux-aio@kvack.org, linux-kernel@vger.kernel.org, Suparna bhattacharya , Andrew Morton In-Reply-To: <1171987310.6271.23.camel@heimdal.trondhjem.org> References: <20070219203527.20419.68418.sendpatchset@tetsuo.zabbo.net> <20070219215048.GI6133@think.oraclecorp.com> <20070220002109.GG31205@kvack.org> <1171987310.6271.23.camel@heimdal.trondhjem.org> Content-Type: text/plain Organization: Intel International BV Date: Tue, 20 Feb 2007 17:06:47 +0100 Message-Id: <1171987607.3531.142.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 627 Lines: 16 > We don't try to resolve "conflicting" writes between ordinary mmap() and > write(), so why should we be doing it for mmap and O_DIRECT? > > mmap() is designed to violate the ordinary mutex locks for write(), so > if a conflict arises, whether it be with O_DIRECT or ordinary writes > then it is a case of "last writer wins". but.. wouldn't an O_DIRECT *read* even cause this? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/