linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-rt 0/2] Fix up aio splats at reboot garbage collection
@ 2015-02-15 20:52 Paul Gortmaker
  2015-02-15 20:52 ` [PATCH-rt 1/2] aio: don't take the ctx_lock during rcu garbage collection at reboot Paul Gortmaker
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Paul Gortmaker @ 2015-02-15 20:52 UTC (permalink / raw)
  To: linux-rt-users
  Cc: Mike Galbraith, Benjamin LaHaise, Kent Overstreet, Paul Gortmaker

We ran into a splat during reboot that was caused by the percpu_ref_kill
garbage collection in the fs/aio code.

After researching a bit, it was determined that this was the same
problem reported by Mike a few months ago[1].  In that thread, several
possibilities were discussed, but no patches were added to -rt in
the end out of that discussion.

This implements one of the possible solutions discussed there, which
is -rt specific and not mainline appropriate.

After using that patch, we found another new follow on splat that
was also in aio garbage collection and so we deal with that by using
the callback ("confirm") version of percpu_ref_kill to delay the
schedule_work to a non-atomic context to avoid the second splat.  I
think this second patch could be used in mainline, if one desired to
do so.

[1] https://lkml.org/lkml/2014/6/8/10

Paul.
---

Paul Gortmaker (2):
  aio: don't take the ctx_lock during rcu garbage collection at reboot
  aio: fix splat in free_ioctx_reqs by using percpu callback

 fs/aio.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

-- 
2.1.0


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

end of thread, other threads:[~2015-02-20 17:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15 20:52 [PATCH-rt 0/2] Fix up aio splats at reboot garbage collection Paul Gortmaker
2015-02-15 20:52 ` [PATCH-rt 1/2] aio: don't take the ctx_lock during rcu garbage collection at reboot Paul Gortmaker
2015-02-15 23:50   ` Benjamin LaHaise
2015-02-15 20:52 ` [PATCH-rt 2/2] aio: fix splat in free_ioctx_reqs by using percpu callback Paul Gortmaker
2015-02-18 11:28 ` [PATCH-rt 0/2] Fix up aio splats at reboot garbage collection Sebastian Andrzej Siewior
2015-02-18 13:33   ` Mike Galbraith
2015-02-20 17:31     ` Paul Gortmaker
2015-02-20 17:39       ` Benjamin LaHaise
2015-02-20 17:46         ` Paul Gortmaker

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