public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: signal: break out of wait loops on kthread_stop()
@ 2022-10-19 13:31 Tvrtko Ursulin
  2022-10-19 16:00 ` Jason A. Donenfeld
  0 siblings, 1 reply; 12+ messages in thread
From: Tvrtko Ursulin @ 2022-10-19 13:31 UTC (permalink / raw)
  To: Jason A. Donenfeld, Eric W. Biederman
  Cc: linux-kernel, Intel-gfx@lists.freedesktop.org,
	Ville Syrjälä


Hi,

A question regarding a7c01fa93aeb ("signal: break out of wait loops on 
kthread_stop()") if I may.

We have a bunch code in i915, possibly limited to self tests (ie debug 
builds) but still important for our flows, which spawn kernel threads 
and exercises parts of the driver.

Problem we are hitting with this patch is that code did not really need 
to be signal aware until now. Well to say that more accurately - we were 
able to test the code which is normally executed from userspace, so is 
signal aware, but not worry about -ERESTARTSYS or -EINTR within the test 
cases itself.

For example threads which exercise an internal API for a while until the 
parent calls kthread_stop. Now those tests can hit unexpected errors.

Question is how to best approach working around this change. It is of 
course technically possible to rework our code in more than one way, 
although with some cost and impact already felt due reduced pass rates 
in our automated test suites.

Maybe an opt out kthread flag from this new behavior? Would that be 
acceptable as a quick fix? Or any other comments?

Regards,

Tvrtko

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

end of thread, other threads:[~2022-11-30 16:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 13:31 signal: break out of wait loops on kthread_stop() Tvrtko Ursulin
2022-10-19 16:00 ` Jason A. Donenfeld
2022-10-19 16:01   ` Jason A. Donenfeld
2022-10-19 17:57   ` Tvrtko Ursulin
2022-10-19 18:16     ` Jason A. Donenfeld
2022-10-19 19:05       ` Sultan Alsawaf
2022-10-19 20:09       ` Tvrtko Ursulin
2022-10-19 20:19         ` [Intel-gfx] " Jason A. Donenfeld
2022-10-20 13:45           ` Tvrtko Ursulin
2022-11-28 18:22             ` Eric W. Biederman
2022-11-28 18:27               ` Jason A. Donenfeld
2022-11-30 15:26                 ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox