mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS2q/xV6QjXAdC7k+1FlHeO1qrKLgUCabM+wwAKCRBFlHeO1qrK LtA1AP9pLogYprbkwJoxIQIw5c337sirITfv7vs5TJ7TCJlMdwEAp+lM5pHy8+fd 49VzOcPkW0fJyagIZ7MtdXjmEwitWgs= =Np0A -----END PGP SIGNATURE----- Merge tag 'device_lock_cond_guard-7.1-rc1' into for-7.1/cxl-consolidate-endpoint 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.
This commit is contained in:
commit
e5564e3920
|
|
@ -911,6 +911,7 @@ static inline void device_unlock(struct device *dev)
|
|||
}
|
||||
|
||||
DEFINE_GUARD(device, struct device *, device_lock(_T), device_unlock(_T))
|
||||
DEFINE_GUARD_COND(device, _intr, device_lock_interruptible(_T), _RET == 0)
|
||||
|
||||
static inline void device_lock_assert(struct device *dev)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user