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

Andrew Morton (akpm@digeo.com)
Thu, 10 Oct 2002 14:55:12 -0700


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/