Backports Archive on
 help / color / Atom feed
* [PATCH] backports: add lock_acquire_exclusive
@ 2020-07-06  8:34 Oleksandr Suvorov
  0 siblings, 0 replies; only message in thread
From: Oleksandr Suvorov @ 2020-07-06  8:34 UTC (permalink / raw)
  To: hauke, mcgrof; +Cc: backports, Oleksandr Suvorov

Define lock_acquire_exclusive() macro that doesn't exist
before version 3.14.

Signed-off-by: Oleksandr Suvorov <>

 backport/backport-include/linux/lockdep.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/backport-include/linux/lockdep.h b/backport/backport-include/linux/lockdep.h
index 12b91b4f..17c8ea16 100644
--- a/backport/backport-include/linux/lockdep.h
+++ b/backport/backport-include/linux/lockdep.h
@@ -3,6 +3,10 @@
 #include_next <linux/lockdep.h>
 #include <linux/version.h>
+#define lock_acquire_exclusive(l, s, t, n, i)          lock_acquire(l, s, t, 0, 1, n, i)
 #undef lockdep_assert_held

To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  8:34 [PATCH] backports: add lock_acquire_exclusive Oleksandr Suvorov

Backports Archive on

Archives are clonable:
	git clone --mirror backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ \
	public-inbox-index backports

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone