Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2011 10:32:35 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-arch@freebsd.org
Subject:   Re: ofed merge soon
Message-ID:  <201101291032.35544.hselasky@c2i.net>
In-Reply-To: <alpine.BSF.2.00.1101281050510.1412@desktop>
References:  <alpine.BSF.2.00.1101271653470.1412@desktop> <201101281009.32986.jhb@freebsd.org> <alpine.BSF.2.00.1101281050510.1412@desktop>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Just a comment:

+
+#define DEFINE_MUTEX(lock)                                             \
+       mutex_t lock;                                                   \
+       SX_SYSINIT_FLAGS(lock, &(lock).sx, "lnxmtx", SX_NOWITNESS)
+
+static inline void
+linux_mutex_init(mutex_t *m)
+{
+
+       memset(&m->sx, 0, sizeof(m->sx));
+       sx_init_flags(&m->sx, "lnxmtx",  SX_NOWITNESS);
+}
+
+#define        mutex_init      linux_mutex_init

I see you workaround the fact that Linux does not destroy any mutexes by 
disabling witness. Do you have any plan to upgrade the Linux 3rd party code to 
destroy mutexes?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101291032.35544.hselasky>