]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
rbd: don't set data in rbd_osd_req_format_op()
authorAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 06:27:12 +0000 (01:27 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:18:16 +0000 (21:18 -0700)
commit2fa123201a86ff979813e24f9e5c5fa54931ab7f
treea5332211e304489471f50e4b12ca30c712295997
parentc99d2d4abb6c405ef52e9bc1da87b382b8f41739
rbd: don't set data in rbd_osd_req_format_op()

Currently an object request has its osd request's data field set in
rbd_osd_req_format_op().  That assumes a single osd op per object
request, and that won't be the case for long.

Move the code that sets this out and into the caller.

Rename rbd_osd_req_format_op() to be just rbd_osd_req_format(),
removing the notion that it's doing anything op-specific.

This and the next patch resolve:
    http://tracker.ceph.com/issues/4658

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