Re: [PATCH] scsi: target: Fix recursive locking in __configfs_open_file()

From: Bart Van Assche

Date: Tue Jan 20 2026 - 08:48:25 EST


On 1/19/26 10:50 AM, Prithvi wrote:
Possible unsafe locking scenario:

CPU0
----
lock(&p->frag_sem);
lock(&p->frag_sem);
The least intrusive way to suppress this type of lockdep complaints is
by using lockdep_register_key() and lockdep_unregister_key().

Thanks,

Bart.