rwsem: Implement down_read_interruptible
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 3 Dec 2020 20:11:13 +0000 (14:11 -0600)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Dec 2020 16:08:42 +0000 (17:08 +0100)
commit31784cff7ee073b34d6eddabb95e3be2880a425c
treed1954eccd5b14129437e00b3d03e094a5dae7758
parent0f9368b5bf6db0c04afc5454b1be79022a681615
rwsem: Implement down_read_interruptible

In preparation for converting exec_update_mutex to a rwsem so that
multiple readers can execute in parallel and not deadlock, add
down_read_interruptible.  This is needed for perf_event_open to be
converted (with no semantic changes) from working on a mutex to
wroking on a rwsem.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/87k0tybqfy.fsf@x220.int.ebiederm.org
include/linux/rwsem.h
kernel/locking/rwsem.c