Re: 2.5.41 isofs patch to avoid "bad: scheduling while atomic!"

From: Andrew Morton (akpm@digeo.com)
Date: Thu Oct 10 2002 - 16:55:12 EST


Sylvain Pasche wrote:
>
> --- linux-2.5.41/fs/isofs/dir.c_old 2002-10-10 19:12:19.000000000 +0200
> +++ linux-2.5.41/fs/isofs/dir.c 2002-10-10 19:13:26.000000000 +0200
> @@ -256,7 +256,7 @@
>
> lock_kernel();
>
> - tmpname = (char *) __get_free_page(GFP_KERNEL);
> + tmpname = (char *) __get_free_page(GFP_KERNEL | GFP_ATOMIC);
> if (!tmpname)
> return -ENOMEM;

Not sure about the scheduling while atomic thing, but it is returning
with the lock held. I'll fix that up.
-
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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:39 EST