Re: [PATCH 05/11] cxl/core: Introduce cxl_set_lock_class()

2022-03-09 Thread Dan Williams
On Wed, Mar 9, 2022 at 10:33 AM Jonathan Cameron wrote: > > On Mon, 28 Feb 2022 18:49:17 -0800 > Dan Williams wrote: > > > Update CONFIG_PROVE_CXL_LOCKING to use the common device-core helpers > > for device_lock validation. > > > > When CONFIG_PROVE_LOCKING is enabled and

[PATCH 05/11] cxl/core: Introduce cxl_set_lock_class()

2022-02-28 Thread Dan Williams
Update CONFIG_PROVE_CXL_LOCKING to use the common device-core helpers for device_lock validation. When CONFIG_PROVE_LOCKING is enabled and device_set_lock_class() is passed a non-zero lock class the core acquires the 'struct device' @lockdep_mutex everywhere it acquires the device_lock. Where