diff options
author | Alex Elder <elder@inktank.com> | 2013-02-14 13:16:43 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:16:27 -0400 |
commit | 0fff87ec798abdb4a99f01cbb0197266bb68c5dc (patch) | |
tree | 33c853319e28ed9dd20835c1f3f066be404b50a1 /include/linux | |
parent | 2ac2b7a6d4976bd6b5dc0751aa77d12d48d3ac4c (diff) |
libceph: separate read and write data
An osd request defines information about where data to be read
should be placed as well as where data to write comes from.
Currently these are represented by common fields.
Keep information about data for writing separate from data to be
read by splitting these into data_in and data_out fields.
This is the key patch in this whole series, in that it actually
identifies which osd requests generate outgoing data and which
generate incoming data. It's less obvious (currently) that an osd
CALL op generates both outgoing and incoming data; that's the focus
of some upcoming work.
This resolves:
http://tracker.ceph.com/issues/4127
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ceph/osd_client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 56604b33dc3c..40e02603723d 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -130,8 +130,9 @@ struct ceph_osd_request { | |||
130 | struct ceph_file_layout r_file_layout; | 130 | struct ceph_file_layout r_file_layout; |
131 | struct ceph_snap_context *r_snapc; /* snap context for writes */ | 131 | struct ceph_snap_context *r_snapc; /* snap context for writes */ |
132 | 132 | ||
133 | struct ceph_osd_data r_data; | 133 | struct ceph_osd_data r_data_in; |
134 | struct ceph_pagelist r_trail; /* trailing part of the data */ | 134 | struct ceph_osd_data r_data_out; |
135 | struct ceph_pagelist r_trail; /* trailing part of data out */ | ||
135 | }; | 136 | }; |
136 | 137 | ||
137 | struct ceph_osd_event { | 138 | struct ceph_osd_event { |