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
This commit is contained in:
Pawel Jakub Dawidek 2011-04-02 07:01:09 +00:00
parent ab9092093c
commit 2a49afacd1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220266

View File

@ -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",