From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH v3 6/8] gfs2: Implement iomap direct I/O support
Date: Fri, 6 Apr 2018 11:08:35 -0400 (EDT) [thread overview]
Message-ID: <91110851.16618674.1523027315785.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20180323191728.23819-7-agruenba@redhat.com>
Hi,
----- Original Message -----
> With that, the direct_IO address space operation can be all but
> eliminated: only a dummy remains which indicates that the filesystem
> supports direct I/O.
>
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
> ---
> fs/gfs2/aops.c | 92 +------------------------------
> fs/gfs2/bmap.c | 14 ++++-
> fs/gfs2/file.c | 171
> +++++++++++++++++++++++++++++++++++++++++++++++++++++----
> 3 files changed, 174 insertions(+), 103 deletions(-)
(snip)
> + pos = iocb->ki_pos;
> + endbyte = pos + buffered - 1;
> + ret = filemap_write_and_wait_range(mapping, pos, endbyte);
> + if (!ret) {
> + iocb->ki_pos += buffered;
> + written += buffered;
> + invalidate_mapping_pages(mapping,
> + pos >> PAGE_SHIFT,
> + endbyte >> PAGE_SHIFT);
> + } else {
> + /*
> + * We don't know how much we wrote, so just return
> + * the number of bytes which were direct-written
> + */
Can't we get in trouble here because we don't update iocb->io_pos?
Regards,
Bob Peterson
WARNING: multiple messages have this Message-ID (diff)
From: Bob Peterson <rpeterso@redhat.com>
To: Andreas Gruenbacher <agruenba@redhat.com>
Cc: cluster-devel@redhat.com, Christoph Hellwig <hch@lst.de>,
linux-fsdevel@vger.kernel.org
Subject: Re: [Cluster-devel] [PATCH v3 6/8] gfs2: Implement iomap direct I/O support
Date: Fri, 6 Apr 2018 11:08:35 -0400 (EDT) [thread overview]
Message-ID: <91110851.16618674.1523027315785.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20180323191728.23819-7-agruenba@redhat.com>
Hi,
----- Original Message -----
> With that, the direct_IO address space operation can be all but
> eliminated: only a dummy remains which indicates that the filesystem
> supports direct I/O.
>
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
> ---
> fs/gfs2/aops.c | 92 +------------------------------
> fs/gfs2/bmap.c | 14 ++++-
> fs/gfs2/file.c | 171
> +++++++++++++++++++++++++++++++++++++++++++++++++++++----
> 3 files changed, 174 insertions(+), 103 deletions(-)
(snip)
> + pos = iocb->ki_pos;
> + endbyte = pos + buffered - 1;
> + ret = filemap_write_and_wait_range(mapping, pos, endbyte);
> + if (!ret) {
> + iocb->ki_pos += buffered;
> + written += buffered;
> + invalidate_mapping_pages(mapping,
> + pos >> PAGE_SHIFT,
> + endbyte >> PAGE_SHIFT);
> + } else {
> + /*
> + * We don't know how much we wrote, so just return
> + * the number of bytes which were direct-written
> + */
Can't we get in trouble here because we don't update iocb->io_pos?
Regards,
Bob Peterson
next prev parent reply other threads:[~2018-04-06 15:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-23 19:17 [Cluster-devel] [PATCH v3 0/8] gfs2 iomap write support Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 1/8] gfs2: gfs2_stuffed_write_end cleanup Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 2/8] gfs2: Remove ordered write mode handling from gfs2_trans_add_data Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 3/8] gfs2: Iomap cleanups and improvements Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-04-06 14:06 ` [Cluster-devel] " Bob Peterson
2018-04-06 14:06 ` Bob Peterson
2018-04-06 15:19 ` Andreas Gruenbacher
2018-04-06 15:19 ` Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 4/8] iomap: Add write_{begin, end} iomap operations Andreas Gruenbacher
2018-03-23 19:17 ` [PATCH v3 4/8] iomap: Add write_{begin,end} " Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 5/8] gfs2: Implement iomap buffered write support Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-04-06 14:44 ` [Cluster-devel] " Bob Peterson
2018-04-06 14:44 ` Bob Peterson
2018-04-06 15:15 ` Andreas Grünbacher
2018-04-06 15:15 ` Andreas Grünbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 6/8] gfs2: Implement iomap direct I/O support Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
2018-04-06 15:08 ` Bob Peterson [this message]
2018-04-06 15:08 ` [Cluster-devel] " Bob Peterson
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 7/8] gfs2: Remove gfs2_write_{begin, end} Andreas Gruenbacher
2018-03-23 19:17 ` [PATCH v3 7/8] gfs2: Remove gfs2_write_{begin,end} Andreas Gruenbacher
2018-03-23 19:17 ` [Cluster-devel] [PATCH v3 8/8] iomap: Complete partial direct I/O writes synchronously Andreas Gruenbacher
2018-03-23 19:17 ` Andreas Gruenbacher
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=91110851.16618674.1523027315785.JavaMail.zimbra@redhat.com \
--to=rpeterso@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.