Hi, On Fri, Sep 13, 2002 at 02:41:27PM +0200, Jan Hudec wrote: > Ref-counts protect from swapping out. But it's the PG_locked flag, that > protects from starting other IO. If you are writing, read must not > happen. If you are reading, nothing else at all must happen. So that's > the difference. map_use_kiobuf fault the pages in. lock_kiovec make > sure, that noone (else) is doing ANU IO on the pages. Depends on what semantics you want. There's nothing to stop a kiobuf from being modified in flight. All the app has to do is create a thread and modify the buffer from within that thread. --Stephen -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/