All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Ming Lei <ming.lei@redhat.com>, Jared Holzman <jholzman@nvidia.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: Port to 6.14-stable - ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd
Date: Tue, 6 May 2025 07:57:34 -0600	[thread overview]
Message-ID: <86337907-45ec-4e75-8b5c-7b7f13099db2@kernel.dk> (raw)
In-Reply-To: <aBoRMF7Wy4Ff2JV-@fedora>

On 5/6/25 7:40 AM, Ming Lei wrote:
> On Tue, May 06, 2025 at 04:16:25PM +0300, Jared Holzman wrote:
>> On 06/05/2025 5:13, Ming Lei wrote:
>>> On Mon, May 05, 2025 at 07:06:37PM +0300, Jared Holzman wrote:
>>>> Hi Ming,
>>>>
>>>> I'm attempting to back port the fix for this issue to the 6.14-stable branch.
>>>>
>>>> Greg Kroah-Hartman has already applied d6aa0c178bf8 - "ublk: call ublk_dispatch_req() for handling UBLK_U_IO_NEED_GET_DATA",
>>>> but was unable to apply f40139fde527 cleanly.
>>>>
>>>> I created the patch below. It applies and compiles, but when I rerun the scenario I get several hung tasks waiting on the ub->mutex
>>>> which is being held by the following task:
>>>
>>> Hi Jared,
>>>
>>> You need to pull in the following patchset too:
>>>
>>> https://lore.kernel.org/linux-block/20250416035444.99569-1-ming.lei@redhat.com/
>>>
>>> which avoids ub->mutex in error handling code path.
>>>
>>> I just picked them in the following tree:
>>>
>>> https://github.com/ming1/linux/commits/linux-6.14.y/
>>>
>>> Please test and see if they work for you.
>>>
>>>
>>> Thanks,
>>> Ming
>>>
>>
>> Hi Ming,
>>
>> Tested. It works great!
>>
>> Will you be sending a pull request to Greg or should I send him the patches?
> 
> Hi Jared,
> 
> Please make a PR and send to Greg since I didn't test & verify it on 6.14-y
> tree yet.
> 
> And please Cc me, I will give one double review.

Don't do a PR for stable, send a patch series instead.

-- 
Jens Axboe


      reply	other threads:[~2025-05-06 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05 16:06 Port to 6.14-stable - ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd Jared Holzman
2025-05-06  2:13 ` Ming Lei
2025-05-06 13:16   ` Jared Holzman
2025-05-06 13:40     ` Ming Lei
2025-05-06 13:57       ` Jens Axboe [this message]

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=86337907-45ec-4e75-8b5c-7b7f13099db2@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=jholzman@nvidia.com \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    /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.