All of lore.kernel.org
 help / color / mirror / Atom feed
* Proposal for a new lock type
@ 2010-08-15 15:06 Florian Weimer
  2010-08-15 16:58 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2010-08-15 15:06 UTC (permalink / raw)
  To: linux-fsdevel

It seems that it might be useful to have a locally shared, globally
exclusive file lock.  "Local" is defined as "when the file is mapped
shared, memory accesses follow the architecture memory model across
threads and processes, and shared POSIX mutexes work".  This could be
used to make the new WAL code in SQLite 3.7 more foolproof, but there
are other applications which would benefit as well.

It seems to me that this would not need changes to network file
systems because you can implement it by acquring a traditional
fcntl()-style exclusive lock on the network side, without creating a
corresponding local lock.

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

end of thread, other threads:[~2010-08-15 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-15 15:06 Proposal for a new lock type Florian Weimer
2010-08-15 16:58 ` Matthew Wilcox
2010-08-15 17:11   ` Florian Weimer

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.