From: Trond Myklebust Subject: Re: [RFC] Add support for semaphore-like structure with support for asynchronous I/O Date: Mon, 04 Apr 2005 13:56:35 -0400 Message-ID: <1112637395.10602.95.camel@lade.trondhjem.org> References: <1112219491.10771.18.camel@lade.trondhjem.org> <20050330143409.04f48431.akpm@osdl.org> <1112224663.18019.39.camel@lade.trondhjem.org> <1112309586.27458.19.camel@lade.trondhjem.org> <20050331161350.0dc7d376.akpm@osdl.org> <1112318537.11284.10.camel@lade.trondhjem.org> <20050401141225.GA3707@in.ibm.com> <20050404155245.GA4659@in.ibm.com> <20050404162216.GA18469@kvack.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Suparna Bhattacharya , Andrew Morton , linux-kernel@vger.kernel.org, Linux Filesystem Development , linux-aio@kvack.org Return-path: To: Benjamin LaHaise In-Reply-To: <20050404162216.GA18469@kvack.org> Sender: owner-linux-aio@kvack.org List-Id: linux-fsdevel.vger.kernel.org m=C3=A5 den 04.04.2005 Klokka 12:22 (-0400) skreiv Benjamin LaHaise: > > Your approach looks reasonable and simple enough. It'd be useful if= I > > could visualize the caller side of things as in the NFS client stre= am > > as you mention - do you plan to post that soon ?=20 > > I'm tempted to think about the possibility of using your iosems > > with retry-based AIO. >=20 > I'm not sure I see the point in adding yet another type of lock to th= e=20 > kernel that has different infrastructure. This will end up with much= =20 > more code changing to adapt to the new iosems, rather than just using= a=20 > new primative on the existing semaphores. The point is to avoid having to develop and test 23 different and highl= y arch-dependent (and hence non-maintainable) versions of the same code. In particular note that many of those architectures appear to be heavil= y over-optimized to directly inline assembly code as well as to use non-standard calling conventions. They all also manage somehow to diffe= r w.r.t. spinlocking conventions and even w.r.t. the internal structures and algorithms used. IOW: the current semaphore implementations really all need to die, and be replaced by a single generic version to which it is actually practical to add new functionality. =46ailing that, it is _much_ easier to convert the generic code that ne= eds to support aio to use a new locking implementation and then test that. It is not as if conversion to aio won't involve changes to the code in the area surrounding those locks anyway. Cheers, Trond --=20 Trond Myklebust -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org