Re: [PATCH 2.2.10] Re: Problem with memmap file with SMP

Linus Torvalds (torvalds@transmeta.com)
Thu, 15 Jul 1999 09:39:37 -0700 (PDT)


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/