Re: [PATCH v3] gpio: sim: fix the configfs lockup racing with mkdir/rmdir

From: Bartosz Golaszewski

Date: Mon Nov 02 2026 - 04:50:57 EST


On Sat, Oct 31, 2026 at 06:58:21PM +1000, Yu Zhang wrote:
> gpio_sim_device_lockup_configfs() depends (on activation) and undepends
> (on deactivation) the leaf configfs entries of a device. It walks
> dev->bank_list and bank->line_list without dev->lock, while the lists
> are modified and their nodes freed under dev->lock by the configfs
> make/release callbacks. It also walks the lists twice, once to depend
> and once to undepend, and the two walks can see different entries:
>

Don't send new iterations as replies to previous ones. Each new
iteration should be its own new thread. Please consider using b4 for
patch management.

Please resend this as a new thread on the list.

Thanks,
Bartosz