From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] [bz 192] Fixed Regression in NFS Direct I/O path
Date: Thu, 28 Oct 2010 14:19:30 -0400 [thread overview]
Message-ID: <1288289970.14221.15.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <1288268274-9444-1-git-send-email-steved@redhat.com>
On Thu, 2010-10-28 at 08:17 -0400, Steve Dickson wrote:
> A typo, introduced by commit f11ac8db, in the nfs_direct_write()
> routine causes writes with O_DIRECT set to fail with a ENOMEM error.
>
> Found-by: Jeff Layton <jlayton@redhat.com>
> Signed-off-by: Steve Dickson <steved@redhat.com>
> ---
> fs/nfs/direct.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
> index 064a809..84d3c8b 100644
> --- a/fs/nfs/direct.c
> +++ b/fs/nfs/direct.c
> @@ -873,7 +873,7 @@ static ssize_t nfs_direct_write(struct kiocb *iocb, const struct iovec *iov,
> dreq->inode = inode;
> dreq->ctx = get_nfs_open_context(nfs_file_open_context(iocb->ki_filp));
> dreq->l_ctx = nfs_get_lock_context(dreq->ctx);
> - if (dreq->l_ctx != NULL)
> + if (dreq->l_ctx == NULL)
> goto out_release;
> if (!is_sync_kiocb(iocb))
> dreq->iocb = iocb;
Applied! Thanks!
Trond
prev parent reply other threads:[~2010-10-28 18:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 12:17 [PATCH] [bz 192] Fixed Regression in NFS Direct I/O path Steve Dickson
2010-10-28 12:34 ` Jeff Layton
2010-10-28 13:55 ` Jeff Layton
2010-10-28 14:03 ` Trond Myklebust
2010-10-28 14:10 ` Jeff Layton
2010-10-28 12:38 ` Christoph Hellwig
2010-10-28 13:44 ` Trond Myklebust
2010-10-28 18:19 ` Trond Myklebust [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=1288289970.14221.15.camel@heimdal.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).