]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/rbd.c
rbd: pass flags to rbd_req_sync_exec()
authorAlex Elder <elder@inktank.com>
Tue, 26 Jun 2012 19:57:03 +0000 (12:57 -0700)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:52 +0000 (14:30 -0500)
commit3cb4a687c72bd16c95f514933d68884eacac4e4e
tree97d9d9081bc3ca87e4a9d310c657fbead430d848
parent3ee4001e0c875ce8ebcdf5ea305e9a105b3687bd
rbd: pass flags to rbd_req_sync_exec()

In order to allow both read requests and write requests to be
initiated using rbd_req_sync_exec(), add an OSD flags value
which can be passed down to rbd_req_sync_op().  Rename the "data"
and "len" parameters to be more clear that they represent data
that is outbound.

At this point, this function is still only used (and only works) for
write requests.

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