Re: [PATCH] i2c: core: Workaround false-positive LOCKDEP in delete_device

Wolfram Sang
2022-05-21T09:50:50Z

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

> + /*
> + * We drop the mutex here, because device unregister
> + * will take sysfs lock (kn->count) which, as LOCKDEP
> + * would think, depends on this mutex
> + */

I have to ask: can't lockdep be fixed or the lock somehow be annotated
to prevent the false positive?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]