Re: PF_MEMALLOC in 2.6

Stephen C. Tweedie
2004-08-19T08:48:20Z

Hi,

On Thu, 2004-08-19 at 07:55, Pete Zaitcev wrote:
> The PF_MEMALLOC is required on usb-storage threads in 2.4, because ext3
> will deadlock and otherwise misbehave when it's trying to write out
> dirty pages under memory pressure.

> I received a bug report today from an FC3T1 user with same symptoms
> as 2.4. But I'm entirely clueless in the way VM operates. Comments?

> @@ -285,7 +285,7 @@ static int usb_stor_control_thread(void
> - current->flags |= PF_NOFREEZE;
> + current->flags |= PF_NOFREEZE|PF_MEMALLOC;

Looks entirely reasonable to me.

--Stephen