All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests 0/3] test and handle concurrent IO scheduler switching
@ 2026-07-26  5:32 Shin'ichiro Kawasaki
  2026-07-26  5:32 ` [PATCH blktests 1/3] block: add test for " Shin'ichiro Kawasaki
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shin'ichiro Kawasaki @ 2026-07-26  5:32 UTC (permalink / raw)
  To: linux-block; +Cc: Shin'ichiro Kawasaki

Until the recent kernel commit 4ff58d6bc9dd ("block: serialize elevator
changes for the same queue using a writer lock") concurrent writes to
the sysfs file queue/scheduler caused KASAN failures [1]. The first
patch of this series adds the regression test case for the fix.

After the kernel commit, writes to the file queue/scheduler can return
-EBUSY. This is rare but can happen when udevd writes to the file at
exactly the same timing as blktests test cases, and it results in
unexpected test failures. The other two patches in this series handle
-EBUSY and avoid the failures.

[1] https://lore.kernel.org/linux-block/20260626004221.711326-1-shinichiro.kawasaki@wdc.com/

Shin'ichiro Kawasaki (3):
  block: add test for concurrent IO scheduler switching
  check: introduce _write_queue_sched() to repeat queue/scheduler writes
  common, block/{015,020,021,027,040}, zbd/012: use _write_queue_sched()

 check                      | 24 ++++++++++++++++++-
 common/dm                  |  2 +-
 common/multipath-over-rdma |  2 +-
 common/rc                  |  5 +---
 tests/block/015            |  2 +-
 tests/block/020            |  2 +-
 tests/block/021            |  2 +-
 tests/block/027            |  2 +-
 tests/block/040            |  3 +--
 tests/block/045            | 49 ++++++++++++++++++++++++++++++++++++++
 tests/block/045.out        |  2 ++
 tests/zbd/012              |  2 +-
 12 files changed, 83 insertions(+), 14 deletions(-)
 create mode 100755 tests/block/045
 create mode 100644 tests/block/045.out

-- 
2.54.0


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

end of thread, other threads:[~2026-08-03  4:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26  5:32 [PATCH blktests 0/3] test and handle concurrent IO scheduler switching Shin'ichiro Kawasaki
2026-07-26  5:32 ` [PATCH blktests 1/3] block: add test for " Shin'ichiro Kawasaki
2026-07-26  5:32 ` [PATCH blktests 2/3] check: introduce _write_queue_sched() to repeat queue/scheduler writes Shin'ichiro Kawasaki
2026-07-26  5:32 ` [PATCH blktests 3/3] common, block/{015,020,021,027,040}, zbd/012: use _write_queue_sched() Shin'ichiro Kawasaki
2026-08-03  4:06 ` [PATCH blktests 0/3] test and handle concurrent IO scheduler switching Shin'ichiro Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.