diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-01-11 23:47:13 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-25 21:57:46 +0100 |
commit | 0547a9b30a5ac8680325752b61d3ffa9d4971b6e (patch) | |
tree | 0e54e227d44fab7b98c97ee4c3bed185a1238487 /fs/ceph/messenger.h | |
parent | ceph: refactor messages data section allocation (diff) | |
download | linux-0547a9b30a5ac8680325752b61d3ffa9d4971b6e.tar.xz linux-0547a9b30a5ac8680325752b61d3ffa9d4971b6e.zip |
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 { struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, struct ceph_msg_header *hdr, int *skip); - /* an incoming message has a data payload; tell me what pages I - * should read the data into. */ - int (*prepare_pages) (struct ceph_connection *con, struct ceph_msg *m, - int want); }; extern const char *ceph_name_type_str(int t); |