linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] gpio: fix SRCU bugs
@ 2024-02-13  9:31 Bartosz Golaszewski
  2024-02-13  9:31 ` [PATCH 1/3] gpio: take the SRCU read lock in gpiod_hog() Bartosz Golaszewski
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2024-02-13  9:31 UTC (permalink / raw)
  To: Linus Walleij, Kent Gibson, Alex Elder, Geert Uytterhoeven,
	Paul E . McKenney, Andy Shevchenko, Wolfram Sang
  Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Here are three fixes to some bugs in recent SRCU changes. The first one fixes
an actual race condition. The other two just make lockdep happy.

Bartosz Golaszewski (3):
  gpio: take the SRCU read lock in gpiod_hog()
  gpio: cdev: use correct pointer accessors with SRCU
  gpio: use rcu_dereference_protected() to make lockdep happy

 drivers/gpio/gpiolib-cdev.c | 25 ++++++++++++-------------
 drivers/gpio/gpiolib.c      | 23 +++++++++++++++--------
 drivers/gpio/gpiolib.h      |  4 +++-
 3 files changed, 30 insertions(+), 22 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-13 21:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13  9:31 [PATCH 0/3] gpio: fix SRCU bugs Bartosz Golaszewski
2024-02-13  9:31 ` [PATCH 1/3] gpio: take the SRCU read lock in gpiod_hog() Bartosz Golaszewski
2024-02-13 21:29   ` Linus Walleij
2024-02-13  9:31 ` [PATCH 2/3] gpio: cdev: use correct pointer accessors with SRCU Bartosz Golaszewski
2024-02-13 21:33   ` Linus Walleij
2024-02-13  9:31 ` [PATCH 3/3] gpio: use rcu_dereference_protected() to make lockdep happy Bartosz Golaszewski
2024-02-13 12:03   ` Paul E. McKenney
2024-02-13 12:06     ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).