Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2017 12:10:02 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316521 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201704051210.v35CA2Wu044964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Apr  5 12:10:02 2017
New Revision: 316521
URL: https://svnweb.freebsd.org/changeset/base/316521

Log:
  Implement down_write_killable() in the LinuxKPI.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/rwsem.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rwsem.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rwsem.h	Wed Apr  5 08:25:22 2017	(r316520)
+++ head/sys/compat/linuxkpi/common/include/linux/rwsem.h	Wed Apr  5 12:10:02 2017	(r316521)
@@ -47,6 +47,7 @@ struct rw_semaphore {
 #define	up_read(_rw)			sx_sunlock(&(_rw)->sx)
 #define	down_read_trylock(_rw)		!!sx_try_slock(&(_rw)->sx)
 #define	down_write_trylock(_rw)		!!sx_try_xlock(&(_rw)->sx)
+#define	down_write_killable(_rw)	!!sx_xlock_sig(&(_rw)->sx)
 #define	downgrade_write(_rw)		sx_downgrade(&(_rw)->sx)
 #define	down_read_nested(_rw, _sc)	down_read(_rw)
 #define	init_rwsem(_rw)			linux_init_rwsem(_rw, rwsem_name("lnxrwsem"))



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