Messages in this thread | | | From | Linus Walleij <> | Date | Tue, 2 Jan 2024 23:12:47 +0100 | Subject | Re: [PATCH v2 2/3] gpiolib: replace the GPIO device mutex with a read-write semaphore |
| |
On Tue, Jan 2, 2024 at 4:59 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > There are only two spots where we modify (add to or remove objects from) > the GPIO device list. Readers should be able to access it concurrently. > Replace the mutex with a read-write semaphore and adjust the locking > operations accordingly. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Looks correct to me. Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours, Linus Walleij
| |