summaryrefslogtreecommitdiffstats
path: root/include/linux/rwsem.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-21 08:27:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-21 08:27:15 +0200
commitc049ffb35ac4a393919a001f8f468c43cb185a34 (patch)
tree3d8835848724bebf6326aaed3ae5e4dd8d302057 /include/linux/rwsem.h
parentbaf12d6ddeae74dfcfd5d19fce86260a2e1e44f2 (diff)
parent771c577c23bac90597c685971d7297ea00f99d11 (diff)
downloadop-kernel-dev-c049ffb35ac4a393919a001f8f468c43cb185a34.zip
op-kernel-dev-c049ffb35ac4a393919a001f8f468c43cb185a34.tar.gz
Merge 4.17-rc6 into usb-next
We want the bug fixes and this resolves the merge issues with the usbip driver. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/rwsem.h')
-rw-r--r--include/linux/rwsem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h
index 56707d5..ab93b6e 100644
--- a/include/linux/rwsem.h
+++ b/include/linux/rwsem.h
@@ -44,6 +44,12 @@ struct rw_semaphore {
#endif
};
+/*
+ * Setting bit 0 of the owner field with other non-zero bits will indicate
+ * that the rwsem is writer-owned with an unknown owner.
+ */
+#define RWSEM_OWNER_UNKNOWN ((struct task_struct *)-1L)
+
extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem);
extern struct rw_semaphore *rwsem_down_read_failed_killable(struct rw_semaphore *sem);
extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem);
OpenPOWER on IntegriCloud