lkml.org 
[lkml]   [2002]   [Aug]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 06 Aug 2002 07:05:35 -0700 (PDT)
SubjectRe: [TRIVIAL] Warn users about machines with non-working WP bit
From"David S. Miller" <>
   From: Kasper Dupont <kasperd@daimi.au.dk>
   Date: Tue, 06 Aug 2002 16:16:03 +0200

   "David S. Miller" wrote:
   > What if we have to sleep and page in some memory from disk?
   > 
   > Your idea could lead to deadlock in a multi-threaded app.
   Why? The page should eventually get into memory from the disk,
   at this point the process doing the copy can continue, and
   when it finishes the other processes gets waked up. While the
   copy_to_user is in progress all the processes witht this mm
   should be in noninterruptible sleep. The sleeping procces
   doesn't need to do anything to get the page into memory, so I
   cannot see the problem.

What if the other thread we freeze is holding a lock we
need in order to get the page from disk?
-
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 12:27    [from the cache]
©2003-2008