Date: Wed, 12 Apr 2006 19:50:15 -0500
From: Kevin Corry <kevcorry us ibm com>
To: dm-devel redhat com
Cc: Abhishek Gupta <agupta cs ubc ca>
Subject: Re: [dm-devel] Synchronizing writes between kernel space and user
space.
On Wed April 12 2006 7:16 pm, Abhishek Gupta wrote:
Can anyone tell me the synchronization calls to be used if writes
to a device are being done from both user space and kernel space. I
noticed that lock_page()/unlock_page() is one set of functions that
can be used. Obviously, this is too coarse grained, if buffers are smaller
than the page size. The functions lock_buffer()/unlock_buffer() do not
seem to do the trick.
What do you mean by doing writes from both user space and kernel space? Is
there something in particular you're trying to synchronize?
This question doesn't seem specific to device-mapper. I'd suggest posting this
on lkml to get a wider range of responses.
--
Kevin Corry
kevcorry us ibm com
http://www.ibm.com/linux/
http://evms.sourceforge.net/