From: Ming Lei <ming.lei@redhat.com>
To: Jared Holzman <jholzman@nvidia.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: [PATCH] ublk: Add UBLK_U_CMD_SET_SIZE
Date: Mon, 7 Apr 2025 11:32:10 +0800 [thread overview]
Message-ID: <Z_NHOlakYO22Q7JR@fedora> (raw)
In-Reply-To: <Z_NDGl6Le--pPBxR@fedora>
On Mon, Apr 07, 2025 at 11:14:34AM +0800, Ming Lei wrote:
> On Sun, Apr 06, 2025 at 11:17:05PM +0300, Jared Holzman wrote:
> > Hi Ming,
> >
> > On 05/04/2025 5:51, Ming Lei wrote:
> > > External email: Use caution opening links or attachments
> > >
> > >
> > > Hello Jared,
> > >
> > > On Thu, Apr 03, 2025 at 12:37:11PM +0000, Jared Holzman wrote:
> > > > Apologies if this is a dup, but I am not seeing the original mail on the mailing list archive.
> > > I guess it is because the patch is sent as html, instead of plain test,
> > > please follow the patch submission guide:
> > >
> > > https://www.kernel.org/doc/Documentation/process/submitting-patches.rst
> >
> > Sorry about that, I originally sent the mail using git send-mail, but our
> > internal smtp relay does not support outside addresses. I then tried
> > forwarding it from Outlook and it decided to add HTML without telling me.
> >
> > I'm using Thunderbird now, so hopefully it will be in plain-text as
> > required.
> >
> > > > ________________________________
> > > > From: Jared Holzman <jholzman@nvidia.com>
> > > > Sent: Monday, 31 March 2025 4:54 PM
> > > > To: linux-block@vger.kernel.org <linux-block@vger.kernel.org>
> > > > Cc: ming.lei@redhat.com <ming.lei@redhat.com>; Omri Mann <omri@nvidia.com>; Ofer Oshri <ofer@nvidia.com>; Omri Levi <omril@nvidia.com>; Jared Holzman <jholzman@nvidia.com>
> > > > Subject: [PATCH] ublk: Add UBLK_U_CMD_SET_SIZE
> > > >
> > > > From: Omri Mann <omri@nvidia.com>
> > > >
> > > > Currently ublk only allows the size of the ublkb block device to be
> > > > set via UBLK_CMD_SET_PARAMS before UBLK_CMD_START_DEV is triggered.
> > > >
> > > > This does not provide support for extendable user-space block devices
> > > > without having to stop and restart the underlying ublkb block device
> > > > causing IO interruption.
> > > The requirement is reasonable.
> > >
> > > > This patch adds a new ublk command UBLK_U_CMD_SET_SIZE to allow the
> > > > ublk block device to be resized on-the-fly.
> > > Looks CMD_SET_SIZE is not generic enough, maybe UBLK_CMD_UPDATE_PARAMS
> > > can be added for support any parameter update by allowing to do it
> > > when device is in LIVE state.
> >
> > That's fine, but we'd rather not take on the burden of verifying all of
> > ublk_params to see which ones can be safely changed on-the-fly.
> >
> > Would it be reasonable to have UBLK_CMD_UPDATE_PARAMS accept a different
> > struct "ublk_param_update" which contains only the parameters that can be
> > updated in the LIVE state and will include only max_sectors for now?
> >
> > Alternatively if you know off the top of your head which parameters can be
> > easily changed on-the-fly and we will add only those.
>
> Fair enough, updating 'dev_sectors' should be generic enough, and it looks
> fine to add UBLK_U_CMD_SET_SIZE.
Also UBLK_U_CMD_SET_SIZE may be renamed as UBLK_U_CMD_UPDATE_SIZE.
Thanks,
Ming
prev parent reply other threads:[~2025-04-07 3:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250331135449.3371818-1-jholzman@nvidia.com>
[not found] ` <SJ1PR12MB63639AFCE9BC8C1EC4D28795B1AE2@SJ1PR12MB6363.namprd12.prod.outlook.com>
2025-04-05 2:51 ` [PATCH] ublk: Add UBLK_U_CMD_SET_SIZE Ming Lei
2025-04-06 20:17 ` Jared Holzman
2025-04-07 3:14 ` Ming Lei
2025-04-07 3:32 ` Ming Lei [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=Z_NHOlakYO22Q7JR@fedora \
--to=ming.lei@redhat.com \
--cc=jholzman@nvidia.com \
--cc=linux-block@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.