Re: BUG or not? GFP_KERNEL with interrupts disabled.

From: David S. Miller (davem@redhat.com)
Date: Thu Mar 27 2003 - 14:39:33 EST


   From: Linus Torvalds <torvalds@transmeta.com>
   Date: Thu, 27 Mar 2003 11:22:55 -0800 (PST)

           if (gfp_mask & __GFP_WAIT)
                   might_sleep();
   
   and might_sleep() should be updated.
   
   Anybody want to try that and see whether things break horribly?

I hadn't considered this, good idea. I'm trying this out right now.

Someone should backport the might_sleep() stuff to 2.4.x, it's very
useful.
-
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 : Mon Mar 31 2003 - 22:00:29 EST