[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4b97cc9b-4143-2a2f-f431-a7ea83a2e945@tronnes.org>
Date: Sat, 5 Nov 2022 10:54:02 +0100
From: Noralf Trønnes <noralf@...nnes.org>
To: Steven Rostedt <rostedt@...dmis.org>, linux-kernel@...r.kernel.org
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Stephen Boyd <sboyd@...nel.org>,
Guenter Roeck <linux@...ck-us.net>,
Anna-Maria Gleixner <anna-maria@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Tvrtko Ursulin <tvrtko.ursulin@...ux.intel.com>,
dri-devel@...ts.freedesktop.org, intel-gfx@...ts.freedesktop.org,
Noralf Trønnes <noralf@...nnes.org>
Subject: Re: [PATCH v4a 31/38] timers: drm: Use timer_shutdown_sync() for on
stack timers
Den 05.11.2022 07.00, skrev Steven Rostedt:
> From: "Steven Rostedt (Google)" <rostedt@...dmis.org>
>
> Before a timer is released, timer_shutdown_sync() must be called.
>
> Link: https://lore.kernel.org/all/20221104054053.431922658@goodmis.org/
>
> Cc: "Noralf Trønnes" <noralf@...nnes.org>
> Cc: David Airlie <airlied@...il.com>
> Cc: Daniel Vetter <daniel@...ll.ch>
> Cc: Jani Nikula <jani.nikula@...ux.intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@...el.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@...ux.intel.com>
> Cc: dri-devel@...ts.freedesktop.org
> Cc: intel-gfx@...ts.freedesktop.org
> Signed-off-by: Steven Rostedt (Google) <rostedt@...dmis.org>
> ---
Acked-by: Noralf Trønnes <noralf@...nnes.org>
> drivers/gpu/drm/gud/gud_pipe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/gud/gud_pipe.c b/drivers/gpu/drm/gud/gud_pipe.c
> index 7c6dc2bcd14a..08429bdd57cf 100644
> --- a/drivers/gpu/drm/gud/gud_pipe.c
> +++ b/drivers/gpu/drm/gud/gud_pipe.c
> @@ -272,7 +272,7 @@ static int gud_usb_bulk(struct gud_device *gdrm, size_t len)
>
> usb_sg_wait(&ctx.sgr);
>
> - if (!del_timer_sync(&ctx.timer))
> + if (!timer_shutdown_sync(&ctx.timer))
> ret = -ETIMEDOUT;
> else if (ctx.sgr.status < 0)
> ret = ctx.sgr.status;
Powered by blists - more mailing lists