public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org,
	ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Subject: Re: [PATCH V3 2/2] ublk_drv: make sure that correct flags(features) returned to userspace
Date: Fri, 22 Jul 2022 18:03:31 +0800	[thread overview]
Message-ID: <Ytp18+v8gwQk2SpQ@T590> (raw)
In-Reply-To: <20220722095319.GA13942@lst.de>

On Fri, Jul 22, 2022 at 11:53:19AM +0200, Christoph Hellwig wrote:
> On Fri, Jul 22, 2022 at 04:45:16PM +0800, Ming Lei wrote:
> >  	/* We are not ready to support zero copy */
> > +	ub->dev_info.flags &= ~UBLK_F_SUPPORT_ZERO_COPY;
> 
> Nit: I'd move this below the clearing of UBLK_F_ALL.  Not because it
> makes much of a differece, but because it flows more logical.

OK.

> 
> > +/* All UBLK_F_* have to be included into UBLK_F_ALL */
> > +#define UBLK_F_ALL (UBLK_F_SUPPORT_ZERO_COPY | UBLK_F_URING_CMD_COMP_IN_TASK)
> 
> And this should not be in the uapi header but only kernel internal.

Yeah, but that may cause UBLK_F_ALL not updated easily, :-(


Thanks,
Ming


      reply	other threads:[~2022-07-22 10:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-22  8:45 [PATCH V3 0/2] ublk_drv: make sure that correct flags(features) returned to userspace Ming Lei
2022-07-22  8:45 ` [PATCH V3 1/2] ublk_drv: fix error handling of ublk_add_dev Ming Lei
2022-07-22  8:57   ` Ziyang Zhang
2022-07-22  8:45 ` [PATCH V3 2/2] ublk_drv: make sure that correct flags(features) returned to userspace Ming Lei
2022-07-22  9:53   ` Christoph Hellwig
2022-07-22 10:03     ` 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=Ytp18+v8gwQk2SpQ@T590 \
    --to=ming.lei@redhat.com \
    --cc=ZiyangZhang@linux.alibaba.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox