Re: [07/65] dm bufio: avoid a possible __vmalloc deadlock

From: Steven Rostedt
Date: Wed Jun 05 2013 - 10:54:36 EST


On Tue, 2013-06-04 at 08:59 -0400, Mikulas Patocka wrote:
> > + */
> > +
> > + if (gfp_mask & __GFP_NORETRY) {
> > + noio_flag = current->flags;
>
> There should be noio_flag = current->flags & PF_MEMALLOC; because we don't
> want to restore other flags.
>

Here's the updated version:

Thanks,

-- Steve