|
|
Log in / Subscribe / Register

ublk: simplify abort with cancelable uring_cmd

From:  Ming Lei <ming.lei-AT-redhat.com>
To:  Jens Axboe <axboe-AT-kernel.dk>, io-uring-AT-vger.kernel.org, linux-block-AT-vger.kernel.org
Subject:  [PATCH for-6.7/io_uring 0/7] ublk: simplify abort with cancelable uring_cmd
Date:  Mon, 09 Oct 2023 17:33:15 +0800
Message-ID:  <20231009093324.957829-1-ming.lei@redhat.com>
Cc:  Ming Lei <ming.lei-AT-redhat.com>
Archive-link:  Article

Hello,

Simplify ublk request & io command aborting handling with the new added
cancelable uring_cmd. With this change, the aborting logic becomes
simpler and more reliable, and it becomes easy to add new feature, such
as relaxing queue/ublk daemon association.

Pass `blktests ublk` test, and pass lockdep when running `./check ublk`
of blktests.


Ming Lei (7):
  ublk: don't get ublk device reference in ublk_abort_queue()
  ublk: make sure io cmd handled in submitter task context
  ublk: move ublk_cancel_dev() out of ub->mutex
  ublk: rename mm_lock as lock
  ublk: quiesce request queue when aborting queue
  ublk: replace monitor with cancelable uring_cmd
  ublk: simplify aborting request

 drivers/block/ublk_drv.c | 306 ++++++++++++++++++++++++---------------
 1 file changed, 190 insertions(+), 116 deletions(-)

-- 
2.41.0



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds