Skip to contentSkip to conversation

greybus: loopback: remove gb_loopback_async_wait_all()

PATCH In review Pranav Tyagi 2 participants 3 messages Jun 28, 2025 – Jul 1, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 greybus: loopback: remove gb_loopback_async_wait_all()

Remove redundant gb_loopback_async_wait_all() as connection is disabled at the beginning and no further incoming/outgoing requests are possible.

---
 drivers/staging/greybus/loopback.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/greybus/loopback.c +0 -7
index 1f19323b0e1a..9d0d4308ad25 100644
@@ -1110,13 +1110,6 @@ static void gb_loopback_disconnect(struct gb_bundle *bundle)
 	gb_connection_latency_tag_disable(gb->connection);
 	debugfs_remove(gb->file);
 
-	/*
-	 * FIXME: gb_loopback_async_wait_all() is redundant now, as connection
-	 * is disabled at the beginning and so we can't have any more
-	 * incoming/outgoing requests.
-	 */
-	gb_loopback_async_wait_all(gb);
-
 	spin_lock_irqsave(&gb_dev.lock, flags);
 	gb_dev.count--;
 	spin_unlock_irqrestore(&gb_dev.lock, flags);
Signature · 1 line
2.49.0
maintainer
#1 lore raw
Quoted 13 lines · Pranav Tyagi

Remove redundant gb_loopback_async_wait_all() as connection is disabled at the beginning and no further incoming/outgoing requests are possible.

---
 drivers/staging/greybus/loopback.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/greybus/loopback.c +0 -0
index 1f19323b0e1a..9d0d4308ad25 100644

drivers/staging/greybus/loopback.c static void gb_loopback_disconnect(struct gb_bundle *bundle) · line 1118

Quoted 9 lines
drivers/staging/greybus/loopback.c +0 -6
@@ -1110,13 +1110,6 @@ static void gb_loopback_disconnect(struct gb_bundle *bundle)
 	gb_connection_latency_tag_disable(gb->connection);
 	debugfs_remove(gb->file);
 
-	/*
-	 * FIXME: gb_loopback_async_wait_all() is redundant now, as connection
-	 * is disabled at the beginning and so we can't have any more
-	 * incoming/outgoing requests.
-	 */
-	gb_loopback_async_wait_all(gb);

How was this tested? It might be redundant but I don't think you can delete this just yet, otherwise we would have done so a long time ago.

And your changelog just says the same thing as this comment, shouldn't you write something different?

thanks,

greg k-h

#2 lore raw
Quoted 28 lines · Greg KH
Quoted 13 lines · Pranav Tyagi

Remove redundant gb_loopback_async_wait_all() as connection is disabled at the beginning and no further incoming/outgoing requests are possible.

---
 drivers/staging/greybus/loopback.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/greybus/loopback.c +0 -0
index 1f19323b0e1a..9d0d4308ad25 100644

drivers/staging/greybus/loopback.c static void gb_loopback_disconnect(struct gb_bundle *bundle) · line 1118

Quoted 9 lines
drivers/staging/greybus/loopback.c +0 -6
@@ -1110,13 +1110,6 @@ static void gb_loopback_disconnect(struct gb_bundle *bundle)
      gb_connection_latency_tag_disable(gb->connection);
      debugfs_remove(gb->file);
 
-     /*
-      * FIXME: gb_loopback_async_wait_all() is redundant now, as connection
-      * is disabled at the beginning and so we can't have any more
-      * incoming/outgoing requests.
-      */
-     gb_loopback_async_wait_all(gb);

How was this tested? It might be redundant but I don't think you can delete this just yet, otherwise we would have done so a long time ago.

Quoted 6 lines

And your changelog just says the same thing as this comment, shouldn't you write something different?

thanks,

greg k-h

Hi,

Thanks for the feedback. On checking the context, I found the FIXME to be trivial and build-test the patch. But, it definitely can not guarantee runtime correctness. I will also try to write better changelogs for future patches.

Apologies for the noise.

Regards
Pranav Tyagi