From: Boaz Harrosh <bharrosh@panasas.com>
To: Benny Halevy <bhalevy@panasas.com>,
Fred Isaman <iisaman@netapp.com>,
Trond Myklebust <Trond.Myklebust@netapp.com>,
NFS list <linux-nfs@vger.kernel.org>
Subject: Smack on the head: Questions about pnfs write path
Date: Sun, 22 May 2011 02:45:18 +0300 [thread overview]
Message-ID: <4DD84E8E.5040508@panasas.com> (raw)
Fred git blame points to you:
What was the meaning of the below code:
@@ -1014,18 +1015,22 @@ static int nfs_flush_one(struct nfs_pageio_descriptor *desc)
*pages++ = req->wb_page;
}
req = nfs_list_entry(data->pages.next);
if ((!lseg) && list_is_singular(&data->pages))
lseg = pnfs_update_layout(desc->pg_inode, req->wb_context,
req_offset(req), desc->pg_count,
IOMODE_RW);
I mean why only the list_is_singular() case gets a pnfs_update_layout?
Because I have a very funny BUG:
If I do:
dd if=/dev/zero of=/mnt/pnfs/dd1 bs=4k count=1
I get a nice pnfs write out.
But if I do:
dd if=/dev/zero of=/mnt/pnfs/dd1 bs=4k count=2 (or any > 1)
I see all IO going to MDS
Below patch fixes that:
@@ -1014,18 +1015,22 @@ static int nfs_flush_one(struct nfs_pageio_descriptor *desc)
*pages++ = req->wb_page;
}
req = nfs_list_entry(data->pages.next);
- if ((!lseg) && list_is_singular(&data->pages))
+ if ((!lseg) /*&& list_is_singular(&data->pages)*/)
lseg = pnfs_update_layout(desc->pg_inode, req->wb_context,
req_offset(req), desc->pg_count,
IOMODE_RW);
Which points to what I'm saying all along. pNFS Write path had no testing
but by me.
(BTW am still fighting the unbalanced lseg ref)
Thanks
Boaz
next reply other threads:[~2011-05-21 23:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-21 23:45 Boaz Harrosh [this message]
2011-05-22 0:16 ` Smack on the head: Questions about pnfs write path Boaz Harrosh
2011-05-23 14:22 ` Fred Isaman
2011-05-23 17:50 ` Benny Halevy
2011-05-23 17:52 ` Benny Halevy
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=4DD84E8E.5040508@panasas.com \
--to=bharrosh@panasas.com \
--cc=Trond.Myklebust@netapp.com \
--cc=bhalevy@panasas.com \
--cc=iisaman@netapp.com \
--cc=linux-nfs@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 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.