diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-01-11 17:47:13 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-25 15:57:46 -0500 |
commit | 0547a9b30a5ac8680325752b61d3ffa9d4971b6e (patch) | |
tree | 0e54e227d44fab7b98c97ee4c3bed185a1238487 /fs/ceph/messenger.h | |
parent | 9d7f0f139edfdce1a1539b100c617fd9182b0829 (diff) |
ceph: alloc message data pages and check if tid exists
Now doing it in the same callback that is also responsible for
allocating the 'front' part of the message. If we get a message
that we haven't got a corresponding tid for, mark it for skipping.
Moving the mutex unlock/lock from the osd alloc_msg callback
to the calling function in the messenger.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to 'fs/ceph/messenger.h')
-rw-r--r-- | fs/ceph/messenger.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ceph/messenger.h b/fs/ceph/messenger.h index b6bec59056d7..dca2d32b40de 100644 --- a/fs/ceph/messenger.h +++ b/fs/ceph/messenger.h | |||
@@ -46,10 +46,6 @@ struct ceph_connection_operations { | |||
46 | struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, | 46 | struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, |
47 | struct ceph_msg_header *hdr, | 47 | struct ceph_msg_header *hdr, |
48 | int *skip); | 48 | int *skip); |
49 | /* an incoming message has a data payload; tell me what pages I | ||
50 | * should read the data into. */ | ||
51 | int (*prepare_pages) (struct ceph_connection *con, struct ceph_msg *m, | ||
52 | int want); | ||
53 | }; | 49 | }; |
54 | 50 | ||
55 | extern const char *ceph_name_type_str(int t); | 51 | extern const char *ceph_name_type_str(int t); |