All of lore.kernel.org
 help / color / mirror / Atom feed
* Synchronizing writes between kernel space and user space.
@ 2006-04-13  0:16 Abhishek Gupta
  2006-04-13  0:50 ` Kevin Corry
  0 siblings, 1 reply; 3+ messages in thread
From: Abhishek Gupta @ 2006-04-13  0:16 UTC (permalink / raw)
  To: dm-devel

Hi,

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.

Please help.

Thanks

Abhishek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-13  1:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-13  0:16 Synchronizing writes between kernel space and user space Abhishek Gupta
2006-04-13  0:50 ` Kevin Corry
2006-04-13  1:07   ` Abhishek Gupta

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.