]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: isolate message page field manipulation
authorAlex Elder <elder@inktank.com>
Thu, 14 Feb 2013 18:16:43 +0000 (12:16 -0600)
committerGreg Farnum <greg@inktank.com>
Wed, 13 Mar 2013 00:45:08 +0000 (17:45 -0700)
commitc831cc29ad14904d52922ec6ee3937dbd1a4a931
tree23206f63fd3f3afaa40de8e54007532199252dde
parenta783821d7b59471eefb022a1fb7cd204336b14e5
libceph: isolate message page field manipulation

Define a function ceph_msg_data_set_pages(), which more clearly
abstracts the assignment page-related fields for data in a ceph
message structure.  Use this new function in the osd client and mds
client.

Ideally, these fields would never be set more than once (with
BUG_ON() calls to guarantee that).  At the moment though the osd
client sets these every time it receives a message, and in the event
of a communication problem this can happen more than once.  (This
will be resolved shortly, but setting up these helpers first makes
it all a bit easier to work with.)

Rearrange the field order in a ceph_msg structure to group those
that are used to define the possible data payloads.

This partially resolves:
    http://tracker.ceph.com/issues/4263

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
fs/ceph/mds_client.c
include/linux/ceph/messenger.h
net/ceph/messenger.c
net/ceph/osd_client.c