linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpss: core: no waiters left behind on deregister
@ 2019-06-24  8:33 Oliver Neukum
  2019-06-25  7:04 ` Johan Hovold
  2019-06-25 10:47 ` Sergei Shtylyov
  0 siblings, 2 replies; 6+ messages in thread
From: Oliver Neukum @ 2019-06-24  8:33 UTC (permalink / raw)
  To: johan, linux-usb; +Cc: Oliver Neukum

If you deregister a device you need to wake up all waiters
as there will be no further wakeups.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/gnss/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gnss/core.c b/drivers/gnss/core.c
index e6f94501cb28..0d13bd2cefd5 100644
--- a/drivers/gnss/core.c
+++ b/drivers/gnss/core.c
@@ -303,7 +303,7 @@ void gnss_deregister_device(struct gnss_device *gdev)
 	down_write(&gdev->rwsem);
 	gdev->disconnected = true;
 	if (gdev->count) {
-		wake_up_interruptible(&gdev->read_queue);
+		wake_up_interruptible_all(&gdev->read_queue);
 		gdev->ops->close(gdev);
 	}
 	up_write(&gdev->rwsem);
-- 
2.16.4


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

end of thread, other threads:[~2019-07-01 10:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24  8:33 [PATCH] gpss: core: no waiters left behind on deregister Oliver Neukum
2019-06-25  7:04 ` Johan Hovold
2019-06-26 11:04   ` Oliver Neukum
2019-06-26 11:41     ` Johan Hovold
2019-07-01 10:00       ` Oliver Neukum
2019-06-25 10:47 ` Sergei Shtylyov

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).