]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
rbd: separate initialization of osd data
authorAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 06:27:12 +0000 (01:27 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 8 Apr 2013 19:09:58 +0000 (14:09 -0500)
commit50bad0e964b88c9d657889a2992bee4a45aad624
tree5934ad3bf22841ac6cac30075648de3bf9cbb02b
parent78c8c1ae7b865e2912ed0b4229a8dfa387cf38c7
rbd: separate initialization of osd data

The osd data for a request is currently initialized inside
rbd_osd_req_create(), but that assumes an object request's data
belongs in the osd request's data in or data out field.

There are only three places where requests with data are set up, and
it turns out it's easier to call just the osd data init routines
directly there rather than handling it in rbd_osd_req_create().

(The real motivation here is moving toward getting rid of the
osd request in and out data fields.)

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c