From: Peng Tao <bergwolf@gmail.com>
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org, bharrosh@panasas.com,
Peng Tao <tao.peng@emc.com>
Subject: [PATCH-v2 2/3] NFS41: add pg_layout_private and moreio fields
Date: Tue, 29 May 2012 12:38:53 +0800 [thread overview]
Message-ID: <1338266334-11490-3-git-send-email-bergwolf@gmail.com> (raw)
In-Reply-To: <1338266334-11490-1-git-send-email-bergwolf@gmail.com>
To allow layout driver to pass private information around
pg_init/pg_doio.
Cc: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
---
fs/nfs/pagelist.c | 3 +++
include/linux/nfs_page.h | 1 +
include/linux/nfs_xdr.h | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index aed913c..a47d18a 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -49,6 +49,8 @@ void nfs_pgheader_init(struct nfs_pageio_descriptor *desc,
hdr->io_start = req_offset(hdr->req);
hdr->good_bytes = desc->pg_count;
hdr->dreq = desc->pg_dreq;
+ hdr->layout_private = desc->pg_layout_private;
+ hdr->moreio = desc->pg_moreio;
hdr->release = release;
hdr->completion_ops = desc->pg_completion_ops;
if (hdr->completion_ops->init_hdr)
@@ -267,6 +269,7 @@ void nfs_pageio_init(struct nfs_pageio_descriptor *desc,
desc->pg_error = 0;
desc->pg_lseg = NULL;
desc->pg_dreq = NULL;
+ desc->pg_layout_private = NULL;
}
/**
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h
index 88d166b..63093b1 100644
--- a/include/linux/nfs_page.h
+++ b/include/linux/nfs_page.h
@@ -69,6 +69,7 @@ struct nfs_pageio_descriptor {
const struct nfs_pgio_completion_ops *pg_completion_ops;
struct pnfs_layout_segment *pg_lseg;
struct nfs_direct_req *pg_dreq;
+ void *pg_layout_private;
};
#define NFS_WBACK_BUSY(req) (test_bit(PG_BUSY,&(req)->wb_flags))
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 2e53a3f..88e95a7 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1224,6 +1224,8 @@ struct nfs_pgio_header {
void (*release) (struct nfs_pgio_header *hdr);
const struct nfs_pgio_completion_ops *completion_ops;
struct nfs_direct_req *dreq;
+ void *layout_private;
+ bool moreio;
spinlock_t lock;
/* fields protected by lock */
int pnfs_error;
--
1.7.1.262.g5ef3d
next prev parent reply other threads:[~2012-05-29 4:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 4:38 [PATCH-v2 0/3] pnfsblock: cope with DIO changes Peng Tao
2012-05-29 4:38 ` [PATCH-v2 1/3] pnfsblock: bail out partial block direct write Peng Tao
2012-05-31 21:13 ` Myklebust, Trond
2012-05-29 4:38 ` Peng Tao [this message]
2012-05-29 4:38 ` [PATCH-v2 3/3] pnfsblock: call blk_plug functions for direct IO Peng Tao
2012-05-31 21:22 ` Myklebust, Trond
2012-06-01 2:59 ` tao.peng
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=1338266334-11490-3-git-send-email-bergwolf@gmail.com \
--to=bergwolf@gmail.com \
--cc=Trond.Myklebust@netapp.com \
--cc=bharrosh@panasas.com \
--cc=linux-nfs@vger.kernel.org \
--cc=tao.peng@emc.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.