All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 2/4] chunkd: Add tchdbsetmutex
@ 2009-12-26  6:34 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2009-12-26  6:34 UTC (permalink / raw
  To: Jeff Garzik; +Cc: Project Hail List

Documentation says this is necessary for multi-threaded access.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

---
 server/be-fs.c |    3 +++
 1 file changed, 3 insertions(+)

commit 8245bc23aa4608a666b8dda767f18ca03a110906
Author: Master <zaitcev@lembas.zaitcev.lan>
Date:   Fri Dec 25 22:14:37 2009 -0700

    Enable multi-threaded access.

diff --git a/server/be-fs.c b/server/be-fs.c
index 908d41e..89635f8 100644
--- a/server/be-fs.c
+++ b/server/be-fs.c
@@ -74,6 +74,9 @@ int fs_open(void)
 		goto out;
 	}
 
+	if (!tchdbsetmutex(hdb))
+		goto out_hdb;
+
 	omode = HDBOREADER | HDBONOLCK | HDBOWRITER | HDBOCREAT | HDBOTSYNC;
 	if (!tchdbopen(hdb, db_fn, omode)) {
 		applog(LOG_ERR, "failed to open master table %s", db_fn);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-26  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-26  6:34 [Patch 2/4] chunkd: Add tchdbsetmutex Pete Zaitcev

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.