From: Kevin Corry <kevcorry@us.ibm.com>
To: dm-devel@redhat.com
Cc: Abhishek Gupta <agupta@cs.ubc.ca>
Subject: Re: Synchronizing writes between kernel space and user space.
Date: Wed, 12 Apr 2006 19:50:15 -0500 [thread overview]
Message-ID: <200604121950.15246.kevcorry@us.ibm.com> (raw)
In-Reply-To: <Pine.GSO.4.60.0604121711320.22940@cascade.cs.ubc.ca>
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/
next prev parent reply other threads:[~2006-04-13 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 0:16 Synchronizing writes between kernel space and user space Abhishek Gupta
2006-04-13 0:50 ` Kevin Corry [this message]
2006-04-13 1:07 ` Abhishek Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200604121950.15246.kevcorry@us.ibm.com \
--to=kevcorry@us.ibm.com \
--cc=agupta@cs.ubc.ca \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.