public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PF_MEMALLOC in 2.6
@ 2004-08-19  6:55 Pete Zaitcev
  2004-08-19  6:59 ` William Lee Irwin III
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Pete Zaitcev @ 2004-08-19  6:55 UTC (permalink / raw)
  To: arjanv; +Cc: alan, greg, linux-kernel, zaitcev, riel, sct

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?

-- Pete

--- linux-2.6.8-rc4-mm1/drivers/usb/storage/usb.c	2004-08-16 12:13:06.000000000 -0700
+++ linux-2.6.8-rc4-mm1-ub/drivers/usb/storage/usb.c	2004-08-18 23:48:09.335107648 -0700
@@ -285,7 +285,7 @@ static int usb_stor_control_thread(void 
 	 */
 	daemonize("usb-storage");
 
-	current->flags |= PF_NOFREEZE;
+	current->flags |= PF_NOFREEZE|PF_MEMALLOC;
 
 	unlock_kernel();
 

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2004-08-27  9:19 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19  6:55 PF_MEMALLOC in 2.6 Pete Zaitcev
2004-08-19  6:59 ` William Lee Irwin III
2004-08-19  8:46 ` Stephen C. Tweedie
2004-08-19  8:59 ` Oliver Neukum
2004-08-19 12:41 ` Hugh Dickins
2004-08-19 18:25   ` Oliver Neukum
2004-08-20  2:37     ` Nick Piggin
2004-08-20  7:56       ` Oliver Neukum
2004-08-20  8:06         ` Nick Piggin
2004-08-20  8:40           ` Pete Zaitcev
2004-08-20 14:50             ` Oliver Neukum
2004-08-20 15:02               ` Alan Cox
2004-08-20 16:04                 ` Rik van Riel
2004-08-20 16:06                   ` Arjan van de Ven
2004-08-20 16:10                     ` Alan Cox
2004-08-20 16:14                       ` Rik van Riel
2004-08-21  2:03                 ` Nick Piggin
2004-08-20  8:52           ` Oliver Neukum
2004-08-20  9:06             ` Nick Piggin
2004-08-26 21:16             ` Zephaniah E. Hull
2004-08-26 22:04               ` Oliver Neukum
     [not found]                 ` <20040827032554.GB30820@babylon.d2dc.net>
2004-08-27  9:15                   ` Oliver Neukum
2004-08-26 23:41               ` Mikulas Patocka
2004-08-20 10:31   ` Stephen C. Tweedie
2004-08-20 15:34     ` Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox