public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fix hangs with shared sqpoll
@ 2021-04-18 13:52 Pavel Begunkov
  2021-04-18 13:52 ` [PATCH 1/2] io_uring: remove extra sqpoll submission halting Pavel Begunkov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pavel Begunkov @ 2021-04-18 13:52 UTC (permalink / raw)
  To: Jens Axboe, io-uring; +Cc: Joakim Hassila

Jens' reproducers catches shared sqpoll hangs, address them.

v2: do full cancel, and remove ctx from the sqd_list _after_ running
    sqpoll cancel as it depends on it.

Pavel Begunkov (2):
  io_uring: remove extra sqpoll submission halting
  io_uring: fix shared sqpoll cancellation hangs

 fs/io_uring.c | 39 ++++++++++++++++++---------------------
 1 file changed, 18 insertions(+), 21 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/2] fix hangs with shared sqpoll
@ 2021-04-16  0:22 Pavel Begunkov
  2021-04-16  0:22 ` [PATCH 2/2] io_uring: fix shared sqpoll cancellation hangs Pavel Begunkov
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Begunkov @ 2021-04-16  0:22 UTC (permalink / raw)
  To: Jens Axboe, io-uring
  Cc: Dennis Zhou, Tejun Heo, Christoph Lameter, Joakim Hassila

Late catched 5.12 bug with nasty hangs. Thanks Jens for a reproducer.

Pavel Begunkov (2):
  percpu_ref: add percpu_ref_atomic_count()
  io_uring: fix shared sqpoll cancellation hangs

 fs/io_uring.c                   |  5 +++--
 include/linux/percpu-refcount.h |  1 +
 lib/percpu-refcount.c           | 26 ++++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 2 deletions(-)

-- 
2.24.0


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

end of thread, other threads:[~2021-04-19 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-18 13:52 [PATCH v2 0/2] fix hangs with shared sqpoll Pavel Begunkov
2021-04-18 13:52 ` [PATCH 1/2] io_uring: remove extra sqpoll submission halting Pavel Begunkov
2021-04-18 13:52 ` [PATCH 2/2] io_uring: fix shared sqpoll cancellation hangs Pavel Begunkov
2021-04-19 17:34 ` [PATCH v2 0/2] fix hangs with shared sqpoll Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2021-04-16  0:22 [PATCH " Pavel Begunkov
2021-04-16  0:22 ` [PATCH 2/2] io_uring: fix shared sqpoll cancellation hangs Pavel Begunkov

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