From: Jens Axboe <axboe@kernel.dk>
To: Caleb Sander Mateos <csander@purestorage.com>
Cc: Yoav Cohen <yoav@nvidia.com>, Ming Lei <ming.lei@redhat.com>,
linux-block@vger.kernel.org, alex@zazolabs.com,
jholzman@nvidia.com, omril@nvidia.com,
Yoav Cohen <yoav@example.com>
Subject: Re: [PATCH v6 0/3] ublk: introduce UBLK_CMD_TRY_STOP_DEV
Date: Mon, 12 Jan 2026 09:33:47 -0700 [thread overview]
Message-ID: <5447c8c4-da12-4497-8d74-4942101ba412@kernel.dk> (raw)
In-Reply-To: <CADUfDZrzAdjf3PT0M7Gh0jQshKKRdAmb8Ce39dNUfj378vvDTQ@mail.gmail.com>
On 1/12/26 9:28 AM, Caleb Sander Mateos wrote:
> On Mon, Jan 12, 2026 at 8:22?AM Jens Axboe <axboe@kernel.dk> wrote:
>>
>> Please rebase this on the current for-7.0/block tree. It doesn't
>> apply at all, and hunks like:
>>
>> @@ -311,6 +312,12 @@
>> */
>> #define UBLK_F_BUF_REG_OFF_DAEMON (1ULL << 14)
>>
>> +/*
>> + * The device supports the UBLK_CMD_TRY_STOP_DEV command, which
>> + * allows stopping the device only if there are no openers.
>> + */
>> +#define UBLK_F_SAFE_STOP_DEV (1ULL << 17)
>> +
>> /* device state */
>> #define UBLK_S_DEV_DEAD 0
>> #define UBLK_S_DEV_LIVE 1
>>
>> is a clear sign that your way off base at this point. Why else would
>> STOP_DEV be 1 << 17, with the previous one at 1 << 14?
>
> This is due to being developed in parallel with other ublk patch sets
> which are using feature flags 15 (UBLK_F_BATCH_IO) and 16
> (UBLK_F_INTEGRITY). UBLK_F_BATCH_IO is still in development and
> UBLK_F_INTEGRITY was just applied. So I don't think it's fair to blame
> Yoav for not having rebased on commits that didn't exist yet when this
> version of the patch series was sent out :) Should be a trivial
> rebase, though, since the value of 17 was already chosen to avoid
> conflicting with the other patch sets.
At the time v6 was posted, it did not apply to the current branches. So
regardless of how it was developed, that's not a very useful approach as
it means I have to hand apply it. Which isn't too difficult for patches
1-2. But now we have the integrity bits in, which means the selftest
bits take more work. At that point I just threw my hands up.
Hence please repost against the current tree.
--
Jens Axboe
next prev parent reply other threads:[~2026-01-12 16:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 13:36 [PATCH v6 0/3] ublk: introduce UBLK_CMD_TRY_STOP_DEV Yoav Cohen
2026-01-12 13:36 ` [PATCH v6 1/3] ublk: make ublk_ctrl_stop_dev return void Yoav Cohen
2026-01-12 13:36 ` [PATCH v6 2/3] ublk: add UBLK_CMD_TRY_STOP_DEV command Yoav Cohen
2026-01-12 13:36 ` [PATCH v6 3/3] selftests: ublk: add stop command with --safe option Yoav Cohen
2026-01-12 16:22 ` [PATCH v6 0/3] ublk: introduce UBLK_CMD_TRY_STOP_DEV Jens Axboe
2026-01-12 16:28 ` Caleb Sander Mateos
2026-01-12 16:33 ` Jens Axboe [this message]
2026-01-12 17:07 ` Caleb Sander Mateos
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=5447c8c4-da12-4497-8d74-4942101ba412@kernel.dk \
--to=axboe@kernel.dk \
--cc=alex@zazolabs.com \
--cc=csander@purestorage.com \
--cc=jholzman@nvidia.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=omril@nvidia.com \
--cc=yoav@example.com \
--cc=yoav@nvidia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox