lkml.org 
[lkml]   [1999]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VFS?VM - mmap/write deadlock

On Fri, 17 Dec 1999, Eleonora Autore wrote:

> I remember very vaguely Alexander Viro mentioning some easily
> reproducible deadlock when doing mmap followed by write in some
> specific sequence (or a page cache in some specific state?).
>
> Can you please remind me of the scenario - weekend is at hand and one
> needs to do something about it.

actually it was originally noticed by David Miller and mentioned by me :)
The deadlock scenario is when you:

ptr = mmap(file, 4096, 0)
write (file, ptr, 4096);

the write() generates a pagefault which deadlocks on the page lock. (the
process gets 'stuck'.)

the goal is to fix this completely pointless situation in a way that does
not slow down normal usage.

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.083 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site