Re: [PATCH] gpiolib: Use srcu_dereference() in gpiod_get_label()

From: Bartosz Golaszewski

Date: Wed Dec 02 2026 - 03:52:47 EST



On Fri, 27 Nov 2026 10:31:23 +0800, Zqiang wrote:
> The srcu_dereference_check() already evaluates 'srcu_read_lock_held(ssp)'
> internally, so passing srcu_read_lock_held() as the extra condition is
> redundant. all callers of gpiod_get_label() hold the desc_srcu read lock,
> so replace it with srcu_dereference(), which provides identical lockdep
> coverage.
>
> No functional changes.
>
> [...]

Fixed a typo in the commit message and applied for v7.5, thanks!

[1/1] gpiolib: Use srcu_dereference() in gpiod_get_label()
https://git.kernel.org/brgl/c/0e320f0c98b38bcea61b4ccda1bb1d929342b8f7

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>