]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfd933ad1feaa9623c8dacbc3c1d80bf1de7bad6
tree97d9d9081bc3ca87e4a9d310c657fbead430d848
parentd2f031a5e43185d8c1238e6e51fd8c5042a23fe5
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