From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH] aio: check return value of create_workqueue() Date: Mon, 13 Dec 2010 10:58:08 -0500 Message-ID: References: <1292252785-3683-1-git-send-email-namhyung@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Benjamin LaHaise , Alexander Viro , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Namhyung Kim Return-path: In-Reply-To: <1292252785-3683-1-git-send-email-namhyung@gmail.com> (Namhyung Kim's message of "Tue, 14 Dec 2010 00:06:25 +0900") Sender: owner-linux-aio@kvack.org List-Id: linux-fsdevel.vger.kernel.org Namhyung Kim writes: > Signed-off-by: Namhyung Kim > --- > fs/aio.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 8c8f6c5b6d79..c56153f5f73e 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -87,7 +87,7 @@ static int __init aio_setup(void) > > aio_wq = create_workqueue("aio"); > abe_pool = mempool_create_kmalloc_pool(1, sizeof(struct aio_batch_entry)); > - BUG_ON(!abe_pool); > + BUG_ON(!aio_wq || !abe_pool); > > pr_debug("aio_setup: sizeof(struct page) = %d\n", (int)sizeof(struct page)); Acked-by: Jeff Moyer -- 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