summaryrefslogtreecommitdiff
path: root/sys/src/libndb
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-13 15:26:47 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-13 15:26:47 +0100
commit921b81d8f8392534a608b43b6f44c5deefd777e2 (patch)
tree687f56585560516d636ed6e4eb22cbf74b0cc906 /sys/src/libndb
parentef310cbd28bc85ae3bace90b476c3e2fb0b15b0a (diff)
fix cs deadlock caused by ndb trying to create hashfile for /net/ndb
Diffstat (limited to 'sys/src/libndb')
-rw-r--r--sys/src/libndb/ndbopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/libndb/ndbopen.c b/sys/src/libndb/ndbopen.c
index 3a95ccb31..36dd9a864 100644
--- a/sys/src/libndb/ndbopen.c
+++ b/sys/src/libndb/ndbopen.c
@@ -108,6 +108,10 @@ ndbreopen(Ndb *db)
return -1;
}
+ /* no hashfile for /net/ndb (avoids deadlock in cs) */
+ if(d->type == 'I')
+ db->nohash = 1;
+
db->qid = d->qid;
db->mtime = d->mtime;
db->length = d->length;