All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Fengnan Chang <changfengnan@bytedance.com>
Cc: Christian Brauner <brauner@kernel.org>,
	Christoph Hellwig <hch@lst.de>,
	"Darrick J . Wong" <djwong@kernel.org>,
	Ming Lei <ming.lei@redhat.com>, Jens Axboe <axboe@kernel.dk>,
	John Garry <john.garry@linux.dev>,
	linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-ext4@vger.kernel.org
Subject: Re: [PATCH v2] iomap: only poll direct I/O that is a single bio
Date: Wed, 2 Dec 2026 17:51:05 +0100	[thread overview]
Message-ID: <20261202165105.GA7048@lst.de> (raw)
In-Reply-To: <20261202121922.1633960-1-changfengnan@bytedance.com>

On Wed, Dec 02, 2026 at 12:19:22PM +0000, Fengnan Chang wrote:
> @@ -729,6 +733,7 @@ __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
>  	dio->error = 0;
>  	dio->flags = dio_flags & (IOMAP_DIO_FSBLOCK_ALIGNED | IOMAP_DIO_BOUNCE);
>  	dio->done_before = done_before;
> +	dio->wait_for_completion = wait_for_completion;

This double assignment to dio->wait_for_completion is a bit confusing.
What about killing the local wait_for_completion variable in
__iomap_dio_rw to clean this up a bit?  We can also do this as an
incremental patch.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

      parent reply	other threads:[~2026-12-02 16:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:19 [PATCH v2] iomap: only poll direct I/O that is a single bio Fengnan Chang
2026-12-02 12:36 ` sashiko-bot
2026-12-02 16:51 ` Christoph Hellwig [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=20261202165105.GA7048@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=changfengnan@bytedance.com \
    --cc=djwong@kernel.org \
    --cc=john.garry@linux.dev \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@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.