* [PATCH] aio: check return value of create_workqueue()
@ 2010-12-13 15:06 Namhyung Kim
2010-12-13 15:58 ` Jeff Moyer
0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2010-12-13 15:06 UTC (permalink / raw)
To: Benjamin LaHaise, Alexander Viro; +Cc: linux-aio, linux-fsdevel, linux-kernel
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
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));
--
1.7.3.3.400.g93cef
--
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: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] aio: check return value of create_workqueue()
2010-12-13 15:06 [PATCH] aio: check return value of create_workqueue() Namhyung Kim
@ 2010-12-13 15:58 ` Jeff Moyer
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Moyer @ 2010-12-13 15:58 UTC (permalink / raw)
To: Namhyung Kim
Cc: Benjamin LaHaise, Alexander Viro, linux-aio, linux-fsdevel,
linux-kernel
Namhyung Kim <namhyung@gmail.com> writes:
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> ---
> 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 <jmoyer@redhat.com>
--
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: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-13 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 15:06 [PATCH] aio: check return value of create_workqueue() Namhyung Kim
2010-12-13 15:58 ` Jeff Moyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).