Re: [PATCH v5 1/6] mm: teach mm by current context info to not do I/O during memory allocation

From
Ming Lei <hidden>
Date
2012-11-11 12:41:24
Also in
linux-mm, linux-pm, lkml
Reply to
Ming Lei, 2012-11-11
On Sun, Nov 11, 2012 at 8:34 PM, Ming Lei [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+/* GFP_NOIO isn't allowed if PF_MEMALLOC_NOIO is set in current->flags */
+static inline gfp_t memalloc_noio_flags(gfp_t flags)
+{
+       if (unlikely(current->flags & PF_MEMALLOC_NOIO))
+               flags &= ~GFP_NOIO;
+       return flags;
Sorry, the above is wrong, and GFP_IO should be cleared, and I will
resend this one.


Thanks,
--
Ming Lei

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Thread (8 messages) 8 messages, 1 author, last reply 2012-11-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help