Re: [PATCH AUTOSEL 5.19 076/105] net: devlink: avoid false DEADLOCK warning reported by lockdep
From: Jakub Kicinski
Date: Thu Aug 11 2022 - 12:12:50 EST
On Thu, 11 Aug 2022 11:28:00 -0400 Sasha Levin wrote:
> From: Moshe Shemesh <moshe@xxxxxxxxxx>
>
> [ Upstream commit e26fde2f5befad0951fe6345403616bf51e901be ]
>
> Add a lock_class_key per devlink instance to avoid DEADLOCK warning by
> lockdep, while locking more than one devlink instance in driver code,
> for example in opening VFs flow.
I think we can drop this one, no driver locks multiple instances
in 5.19. The whole infra for that stuff is new. Not that adding
a lockdep key can hurt in any way..