lkml.org 
[lkml]   [1999]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.2.10] Re: Problem with memmap file with SMP


On Thu, 15 Jul 1999, Stephen C. Tweedie wrote:
> > stable tree.
>
> Absolutely. The trouble is that a correct fix --- the clean way of
> doing things --- is to back-port the 2.3 changes, which is obviously a
> non-starter. The only real alternative to detecting the special case is
> to differentiate between writes from the page cache and writes from user
> buffers when we call f_op->write(), but that is a change in the
> definition of the VFS which I wanted to avoid for 2.2.

I wonder if the buffer cache is not the only thing that tries to write
from kernel space. You might be able to just do

if (get_fs() == KERNEL_DS)
return;

in update_vm_cache(), but I haven't actually looked at whether anybody
does kernel-writes anywhere else.

Linus


-
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:53    [W:1.927 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site