summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-04-02 07:01:09 +0000
committerpjd <pjd@FreeBSD.org>2011-04-02 07:01:09 +0000
commit02471b97edc56249d3ae5d7d2f28c35adba89ef7 (patch)
tree3a89df74078f131c5cc151970d27f79aff8af0dc /sbin
parent025061f4e03d8a697012942953f4310a82d7a8ba (diff)
downloadFreeBSD-src-02471b97edc56249d3ae5d7d2f28c35adba89ef7.zip
FreeBSD-src-02471b97edc56249d3ae5d7d2f28c35adba89ef7.tar.gz
Handle the problem described in r220264 by using GEOM GATE queue of unlimited
length. This should fix deadlocks reported by HAST users. MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 0f4a872..2c5aa0f 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -761,7 +761,7 @@ init_ggate(struct hast_resource *res)
ggiocreate.gctl_mediasize = res->hr_datasize;
ggiocreate.gctl_sectorsize = res->hr_local_sectorsize;
ggiocreate.gctl_flags = 0;
- ggiocreate.gctl_maxcount = G_GATE_MAX_QUEUE_SIZE;
+ ggiocreate.gctl_maxcount = 0;
ggiocreate.gctl_timeout = 0;
ggiocreate.gctl_unit = G_GATE_NAME_GIVEN;
snprintf(ggiocreate.gctl_name, sizeof(ggiocreate.gctl_name), "hast/%s",
OpenPOWER on IntegriCloud