rbd: don't assign extent info in rbd_req_sync_op()
authorAlex Elder <elder@inktank.com>
Tue, 20 Nov 2012 04:55:21 +0000 (22:55 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 22:34:58 +0000 (16:34 -0600)
commit8d23bf29095e5fab84535035e7a27c4920812c44
treec3b9b07fecc29a27798bd4ed5332f0fb2523bcb0
parentc561191813e232aa52022532751855ff5c9fa319
rbd: don't assign extent info in rbd_req_sync_op()

Move the assignment of the extent offset and length and payload
length out of rbd_req_sync_op() and into its caller in the one spot
where a read (and note--no write) operation might be initiated.

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