lkml.org 
[lkml]   [2003]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] loop 9/9 don't lose PF_MEMDIE
loop_get_buffer loses PF_MEMDIE if it's added while in loop_copy_bio:
not a high probability since it's not waiting there, but could happen,
and sets a bad example (compare with add_to_swap fixed a while back).

--- loop8/drivers/block/loop.c Tue Jun 10 11:55:11 2003
+++ loop9/drivers/block/loop.c Tue Jun 10 12:05:17 2003
@@ -484,7 +484,9 @@

current->flags &= ~PF_MEMALLOC;
bio = loop_copy_bio(rbh);
- current->flags = flags;
+ if (flags & PF_MEMALLOC)
+ current->flags |= PF_MEMALLOC;
+
if (bio == NULL)
blk_congestion_wait(WRITE, HZ/10);
} while (bio == NULL);
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:36    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site