All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Jared Holzman <jholzman@nvidia.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.14.y v2 4/7] ublk: improve detection and handling of ublk server exit
Date: Thu,  8 May 2025 12:19:30 -0400	[thread overview]
Message-ID: <20250507084419-9650541528a84a25@stable.kernel.org> (raw)
In-Reply-To: <20250507094702.73459-5-jholzman@nvidia.com>

[ Sasha's backport helper bot ]

Hi,

✅ All tests passed successfully. No issues detected.
No action required from the submitter.

The upstream commit SHA1 provided is correct: 82a8a30c581bbbe653d33c6ce2ef67e3072c7f12

WARNING: Author mismatch between patch and upstream commit:
Backport author: Jared Holzman<jholzman@nvidia.com>
Commit author: Uday Shankar<ushankar@purestorage.com>

Note: The patch differs from the upstream commit:
---
1:  82a8a30c581bb ! 1:  7602c3e23b631 ublk: improve detection and handling of ublk server exit
    @@ Metadata
      ## Commit message ##
         ublk: improve detection and handling of ublk server exit
     
    +    [ Upstream commit 82a8a30c581bbbe653d33c6ce2ef67e3072c7f12 ]
    +
         There are currently two ways in which ublk server exit is detected by
         ublk_drv:
     
    @@ drivers/block/ublk_drv.c: struct ublk_params_header {
      };
      
     -static bool ublk_abort_requests(struct ublk_device *ub, struct ublk_queue *ubq);
    --
    ++
     +static void ublk_stop_dev_unlocked(struct ublk_device *ub);
     +static void ublk_abort_queue(struct ublk_device *ub, struct ublk_queue *ubq);
     +static void __ublk_quiesce_dev(struct ublk_device *ub);
    - static inline struct request *__ublk_check_and_get_req(struct ublk_device *ub,
    - 		struct ublk_queue *ubq, int tag, size_t offset);
    + 
      static inline unsigned int ublk_req_build_flags(struct request *req);
    + static inline struct ublksrv_io_desc *ublk_get_iod(struct ublk_queue *ubq,
     @@ drivers/block/ublk_drv.c: static void ublk_queue_cmd_list(struct ublk_queue *ubq, struct rq_list *l)
      static enum blk_eh_timer_return ublk_timeout(struct request *rq)
      {
    @@ drivers/block/ublk_drv.c: static struct gendisk *ublk_detach_disk(struct ublk_de
      	mutex_unlock(&ub->mutex);
      	ublk_cancel_dev(ub);
      }
    -@@ drivers/block/ublk_drv.c: static void ublk_remove(struct ublk_device *ub)
    - 	bool unprivileged;
    - 
    +@@ drivers/block/ublk_drv.c: static int ublk_add_tag_set(struct ublk_device *ub)
    + static void ublk_remove(struct ublk_device *ub)
    + {
      	ublk_stop_dev(ub);
     -	cancel_work_sync(&ub->nosrv_work);
      	cdev_device_del(&ub->cdev, &ub->cdev_dev);
    - 	unprivileged = ub->dev_info.flags & UBLK_F_UNPRIVILEGED_DEV;
      	ublk_put_device(ub);
    -@@ drivers/block/ublk_drv.c: static int ublk_ctrl_add_dev(const struct ublksrv_ctrl_cmd *header)
    + 	ublks_added--;
    +@@ drivers/block/ublk_drv.c: static int ublk_ctrl_add_dev(struct io_uring_cmd *cmd)
      		goto out_unlock;
      	mutex_init(&ub->mutex);
      	spin_lock_init(&ub->lock);
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.4.y        |  Success    |  Success   |

  reply	other threads:[~2025-05-08 16:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  9:46 [PATCH 6.14.y v2 0/7] ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd Jared Holzman
2025-05-07  9:46 ` [PATCH 6.14.y v2 1/7] ublk: add helper of ublk_need_map_io() Jared Holzman
2025-05-08 16:17   ` Sasha Levin
2025-05-07  9:46 ` [PATCH 6.14.y v2 2/7] ublk: properly serialize all FETCH_REQs Jared Holzman
2025-05-08 16:18   ` Sasha Levin
2025-05-07  9:46 ` [PATCH 6.14.y v2 3/7] ublk: move device reset into ublk_ch_release() Jared Holzman
2025-05-08 16:19   ` Sasha Levin
2025-05-07  9:46 ` [PATCH 6.14.y v2 4/7] ublk: improve detection and handling of ublk server exit Jared Holzman
2025-05-08 16:19   ` Sasha Levin [this message]
2025-05-07  9:47 ` [PATCH 6.14.y v2 5/7] ublk: remove __ublk_quiesce_dev() Jared Holzman
2025-05-08 16:17   ` Sasha Levin
2025-05-07  9:47 ` [PATCH 6.14.y v2 6/7] ublk: simplify aborting ublk request Jared Holzman
2025-05-08 16:18   ` Sasha Levin
2025-05-07  9:47 ` [PATCH 6.14.y v2 7/7] ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd Jared Holzman
2025-05-08 16:17   ` Sasha Levin
2025-05-07 11:18 ` [PATCH 6.14.y v2 0/7] " Ming Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250507084419-9650541528a84a25@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=jholzman@nvidia.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.