* [PATCH] greybus: loopback: remove gb_loopback_async_wait_all()
@ 2025-06-28 6:31 Pranav Tyagi
2025-06-29 9:47 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Pranav Tyagi @ 2025-06-28 6:31 UTC (permalink / raw)
To: greybus-dev, linux-staging, linux-kernel
Cc: pure.logic, johan, elder, gregkh, skhan, linux-kernel-mentees,
Pranav Tyagi
Remove redundant gb_loopback_async_wait_all() as connection is disabled
at the beginning and no further incoming/outgoing requests are possible.
Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
---
drivers/staging/greybus/loopback.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index 1f19323b0e1a..9d0d4308ad25 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -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);
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] greybus: loopback: remove gb_loopback_async_wait_all()
2025-06-28 6:31 [PATCH] greybus: loopback: remove gb_loopback_async_wait_all() Pranav Tyagi
@ 2025-06-29 9:47 ` Greg KH
2025-07-01 9:12 ` Pranav Tyagi
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2025-06-29 9:47 UTC (permalink / raw)
To: Pranav Tyagi
Cc: greybus-dev, linux-staging, linux-kernel, pure.logic, johan,
elder, skhan, linux-kernel-mentees
On Sat, Jun 28, 2025 at 12:01:21PM +0530, Pranav Tyagi wrote:
> Remove redundant gb_loopback_async_wait_all() as connection is disabled
> at the beginning and no further incoming/outgoing requests are possible.
>
> Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
> ---
> drivers/staging/greybus/loopback.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
> index 1f19323b0e1a..9d0d4308ad25 100644
> --- a/drivers/staging/greybus/loopback.c
> +++ b/drivers/staging/greybus/loopback.c
> @@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] greybus: loopback: remove gb_loopback_async_wait_all()
2025-06-29 9:47 ` Greg KH
@ 2025-07-01 9:12 ` Pranav Tyagi
0 siblings, 0 replies; 3+ messages in thread
From: Pranav Tyagi @ 2025-07-01 9:12 UTC (permalink / raw)
To: Greg KH
Cc: greybus-dev, linux-staging, linux-kernel, pure.logic, johan,
elder, skhan, linux-kernel-mentees
On Sun, Jun 29, 2025 at 3:17 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Sat, Jun 28, 2025 at 12:01:21PM +0530, Pranav Tyagi wrote:
> > Remove redundant gb_loopback_async_wait_all() as connection is disabled
> > at the beginning and no further incoming/outgoing requests are possible.
> >
> > Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
> > ---
> > drivers/staging/greybus/loopback.c | 7 -------
> > 1 file changed, 7 deletions(-)
> >
> > diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
> > index 1f19323b0e1a..9d0d4308ad25 100644
> > --- a/drivers/staging/greybus/loopback.c
> > +++ b/drivers/staging/greybus/loopback.c
> > @@ -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
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-01 9:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28 6:31 [PATCH] greybus: loopback: remove gb_loopback_async_wait_all() Pranav Tyagi
2025-06-29 9:47 ` Greg KH
2025-07-01 9:12 ` Pranav Tyagi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox