All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests v5 0/4] replace module removal with patient module removal
@ 2025-12-25 12:09 Shin'ichiro Kawasaki
  2025-12-25 12:09 ` [PATCH blktests v5 1/4] check,common/*: " Shin'ichiro Kawasaki
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Shin'ichiro Kawasaki @ 2025-12-25 12:09 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 v5 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 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 (2):
  check,common/*: replace module removal with patient module removal
  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                      | 134 +++++++++++++++++++++++++++++++++----
 common/multipath-over-rdma |  10 +--
 common/null_blk            |   5 +-
 common/nvme                |   8 +--
 common/scsi_debug          |  12 +---
 tests/srp/rc               |  19 ++----
 6 files changed, 139 insertions(+), 49 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-01-10  6:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-25 12:09 [PATCH blktests v5 0/4] replace module removal with patient module removal Shin'ichiro Kawasaki
2025-12-25 12:09 ` [PATCH blktests v5 1/4] check,common/*: " Shin'ichiro Kawasaki
2025-12-25 12:09 ` [PATCH blktests v5 2/4] srp/rc: " Shin'ichiro Kawasaki
2025-12-26  9:08   ` Bart Van Assche
2026-01-10  6:08     ` Shinichiro Kawasaki
2025-12-25 12:09 ` [PATCH blktests v5 3/4] check: reimplement _unload_modules() with _patient_rmmod() Shin'ichiro Kawasaki
2025-12-25 12:09 ` [PATCH blktests v5 4/4] check: check reference count for modprobe --remove --wait success case 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.