]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: move message allocation out of ceph_osdc_alloc_request()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 27 Apr 2016 12:15:51 +0000 (14:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 22:36:21 +0000 (00:36 +0200)
commit5c03ddcc8eed1306fb837e6e6b7bef325723cefe
treed48af8a4ae4ce0cc9407b7c72376dc518fbceea3
parent85a497793c44e8ba72485151ef5f358b29ac97fe
libceph: move message allocation out of ceph_osdc_alloc_request()

The size of ->r_request and ->r_reply messages depends on the size of
the object name (ceph_object_id), while the size of ceph_osd_request is
fixed.  Move message allocation into a separate function that would
have to be called after ceph_object_id and ceph_object_locator (which
is also going to become variable in size with RADOS namespaces) have
been filled in:

    req = ceph_osdc_alloc_request(...);
    <fill in req->r_base_oid>
    <fill in req->r_base_oloc>
    ceph_osdc_alloc_messages(req);

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c
fs/ceph/addr.c
fs/ceph/file.c
include/linux/ceph/osd_client.h
net/ceph/osd_client.c