linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [bz 192] Fixed Regression in NFS Direct I/O path
@ 2010-10-28 12:17 Steve Dickson
  2010-10-28 12:34 ` Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Steve Dickson @ 2010-10-28 12:17 UTC (permalink / raw)
  To: Linux NFS Mailing List

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;
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-28 18:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).