Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030224AbXAXFyT (ORCPT ); Wed, 24 Jan 2007 00:54:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030225AbXAXFyT (ORCPT ); Wed, 24 Jan 2007 00:54:19 -0500 Received: from smtp.osdl.org ([65.172.181.24]:53211 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030224AbXAXFyS convert rfc822-to-8bit (ORCPT ); Wed, 24 Jan 2007 00:54:18 -0500 Date: Tue, 23 Jan 2007 21:53:18 -0800 From: Andrew Morton To: =?ISO-8859-1?B?U+liYXN0aWVuIER1Z3Xp?= Cc: linux-kernel , linux-aio , Bharata B Rao , Christoph Hellwig , Suparna Bhattacharya , Ulrich Drepper , Zach Brown , Jean Pierre Dion , Badari Pulavarty Subject: Re: [PATCH -mm 5/5][AIO] - Add listio syscall support Message-Id: <20070123215318.beddfdf7.akpm@osdl.org> In-Reply-To: <20070117105554.346324b4@frecb000686> References: <20070117104601.36b2ab18@frecb000686> <20070117105554.346324b4@frecb000686> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 24 On Wed, 17 Jan 2007 10:55:54 +0100 S?bastien Dugu? wrote: > +struct lio_event *lio_create(struct sigevent __user *user_event, > + int mode) > +{ > + int ret = 0; > + struct lio_event *lio = NULL; > + > + if (unlikely((mode == LIO_NOWAIT) && !user_event)) > + return lio; > + > + lio = kzalloc(sizeof(*lio), GFP_KERNEL); > + > + if (!lio) > + return ERR_PTR(-EAGAIN); > + Why EAGAIN and not ENOMEM? - 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/