fio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Conditionally enable FIO_HAVE_PSHARED_MUTEX on FreeBSD
@ 2017-03-13 18:42 kusumi.tomohiro
  2017-03-13 18:54 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: kusumi.tomohiro @ 2017-03-13 18:42 UTC (permalink / raw)
  To: axboe, fio; +Cc: Tomohiro Kusumi

From: Tomohiro Kusumi <tkusumi@tuxera.com>

> This commit needs a better title, I had no idea what it does until I
> read the patch and the URL pointed at.

Sorry, I rewrote the commit message.

FreeBSD ports has had an outbox patch to conditionally enable
FIO_HAVE_PSHARED_MUTEX, which can be upstream'd.

This commit brings in below diff from FreeBSD ports.
https://github.com/freebsd/freebsd-ports/commit/271a84d2df7bc9b983fe2fabe1615d01202d429b

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
 os/os-freebsd.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/os/os-freebsd.h b/os/os-freebsd.h
index c7863b5..3d7dbe6 100644
--- a/os/os-freebsd.h
+++ b/os/os-freebsd.h
@@ -24,6 +24,10 @@
 #define FIO_HAVE_CPU_AFFINITY
 #define FIO_HAVE_SHM_ATTACH_REMOVED
 
+#if _POSIX_THREAD_PROCESS_SHARED > 0
+#define FIO_HAVE_PSHARED_MUTEX
+#endif
+
 #define OS_MAP_ANON		MAP_ANON
 
 #define fio_swap16(x)	bswap16(x)
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Conditionally enable FIO_HAVE_PSHARED_MUTEX on FreeBSD
  2017-03-13 18:42 [PATCH] Conditionally enable FIO_HAVE_PSHARED_MUTEX on FreeBSD kusumi.tomohiro
@ 2017-03-13 18:54 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2017-03-13 18:54 UTC (permalink / raw)
  To: kusumi.tomohiro; +Cc: fio, Tomohiro Kusumi

On Mon, Mar 13 2017, kusumi.tomohiro@gmail.com wrote:
> From: Tomohiro Kusumi <tkusumi@tuxera.com>
> 
> > This commit needs a better title, I had no idea what it does until I
> > read the patch and the URL pointed at.
> 
> Sorry, I rewrote the commit message.
> 
> FreeBSD ports has had an outbox patch to conditionally enable
> FIO_HAVE_PSHARED_MUTEX, which can be upstream'd.
> 
> This commit brings in below diff from FreeBSD ports.
> https://github.com/freebsd/freebsd-ports/commit/271a84d2df7bc9b983fe2fabe1615d01202d429b

Applied, thanks.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-13 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 18:42 [PATCH] Conditionally enable FIO_HAVE_PSHARED_MUTEX on FreeBSD kusumi.tomohiro
2017-03-13 18:54 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).