Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'device_lock_cond_guard-7.1-rc1' into driver-core-testing

DEFINE_GUARD_COND() for device_lock_interruptible()

Introduce conditional guard version of device_lock() for scenarios that
require conditional device lock holding.

This is a stable tag for other trees to merge.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>

+1
+1
include/linux/device.h
··· 911 911 } 912 912 913 913 DEFINE_GUARD(device, struct device *, device_lock(_T), device_unlock(_T)) 914 + DEFINE_GUARD_COND(device, _intr, device_lock_interruptible(_T), _RET == 0) 914 915 915 916 static inline void device_lock_assert(struct device *dev) 916 917 {