public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] ublk: avoid ublk_io_release() called after ublk char dev is closed
@ 2025-08-25 12:48 Ming Lei
  2025-08-25 12:48 ` [PATCH V2 1/2] " Ming Lei
  2025-08-25 12:48 ` [PATCH V2 2/2] ublk selftests: add --no_ublk_fixed_fd for not using registered ublk char device Ming Lei
  0 siblings, 2 replies; 9+ messages in thread
From: Ming Lei @ 2025-08-25 12:48 UTC (permalink / raw)
  To: Jens Axboe, linux-block
  Cc: Uday Shankar, Keith Busch, Caleb Sander Mateos, Ming Lei

Hi Jens,

The 1st patch fixes ublk_io_release(), and avoids warning from ublk
selftest(test_stress_04.sh).

The 2nd patch adds test case for this issue.

V2:
	- release ublk char device in async way for avoiding dependency with
	io_uring_release(), where sqe buffers may be unregistered finally

Ming Lei (2):
  ublk: avoid ublk_io_release() called after ublk char dev is closed
  ublk selftests: add --no_ublk_fixed_fd for not using registered ublk
    char device

 drivers/block/ublk_drv.c                      | 94 ++++++++++++++++++-
 tools/testing/selftests/ublk/file_backed.c    | 10 +-
 tools/testing/selftests/ublk/kublk.c          | 38 ++++++--
 tools/testing/selftests/ublk/kublk.h          | 46 ++++++---
 tools/testing/selftests/ublk/null.c           |  4 +-
 tools/testing/selftests/ublk/stripe.c         |  4 +-
 .../testing/selftests/ublk/test_stress_04.sh  |  6 +-
 7 files changed, 167 insertions(+), 35 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2025-09-01  8:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 12:48 [PATCH V2 0/2] ublk: avoid ublk_io_release() called after ublk char dev is closed Ming Lei
2025-08-25 12:48 ` [PATCH V2 1/2] " Ming Lei
2025-08-26  5:49   ` Caleb Sander Mateos
2025-08-26  8:32     ` Ming Lei
2025-08-29 15:37       ` Caleb Sander Mateos
2025-09-01  8:44         ` Ming Lei
2025-08-25 12:48 ` [PATCH V2 2/2] ublk selftests: add --no_ublk_fixed_fd for not using registered ublk char device Ming Lei
2025-08-26  4:53   ` Caleb Sander Mateos
2025-08-26  8:36     ` Ming Lei

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