public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests v7 0/3] replace module removal with patient module removal
@ 2026-01-15  9:10 Shin'ichiro Kawasaki
  2026-01-15  9:10 ` [PATCH blktests v7 1/3] check,common,srp/rc: " Shin'ichiro Kawasaki
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Shin'ichiro Kawasaki @ 2026-01-15  9:10 UTC (permalink / raw)
  To: linux-block
  Cc: mcgrof, sw.prabhu6, bvanassche, Chaitanya Kulkarni,
	Shin'ichiro Kawasaki

This patch series was originally authored by Luis Chamberlain [0][1]. I
reworked and post it as this series.

[0] https://lore.kernel.org/all/20221220235324.1445248-2-mcgrof@kernel.org/T/#u
[1] https://lore.kernel.org/linux-block/20251126171102.3663957-1-mcgrof@kernel.org/

Original cover letter:

We now have the modprobe --wait upstream so use that if available.

The patient module remover addresses race conditions where module removal
can fail due to userspace temporarily bumping the refcount (e.g., via
blkdev_open() calls). If your version of kmod supports modprobe --wait,
we use that. Otherwise we implement our own patient module remover.

* Changes from v6
- 1st patch: dropped the hank to replace two _unload_module() calls in srp/rc
- 2nd patch: modified to keep _unload_module() as it is

* Changes from v5
- Dropped the 2nd patch
- 1st patch: replaced _unload_module() calls in srp/rc

* Changes from v4
- 1st patch: moved the new functions from "common/rc" to "check"
- 1st patch: reflected comments by Bart
- 2nd patch: moved the srp/rc hunk from the 1st patch
- Added the 3rd and the 4th patches

Luis Chamberlain (1):
  check,common,srp/rc: replace module removal with patient module
    removal

Shin'ichiro Kawasaki (2):
  check: reimplement _unload_modules() with _patient_rmmod()
  check: check reference count for modprobe --remove --wait success case

 check                      | 128 ++++++++++++++++++++++++++++++++++++-
 common/multipath-over-rdma |  10 +--
 common/null_blk            |   5 +-
 common/nvme                |   8 +--
 common/scsi_debug          |  12 +---
 tests/srp/rc               |   4 +-
 6 files changed, 140 insertions(+), 27 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-01-21  2:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15  9:10 [PATCH blktests v7 0/3] replace module removal with patient module removal Shin'ichiro Kawasaki
2026-01-15  9:10 ` [PATCH blktests v7 1/3] check,common,srp/rc: " Shin'ichiro Kawasaki
2026-01-15  9:11 ` [PATCH blktests v7 2/3] check: reimplement _unload_modules() with _patient_rmmod() Shin'ichiro Kawasaki
2026-01-15  9:11 ` [PATCH blktests v7 3/3] check: check reference count for modprobe --remove --wait success case Shin'ichiro Kawasaki
2026-01-19 10:01 ` [PATCH blktests v7 0/3] replace module removal with patient module removal Daniel Wagner
2026-01-20 17:33 ` Bart Van Assche
2026-01-21  2:22 ` Shinichiro Kawasaki

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