rbd: encapsulate handling for a single request
authorAlex Elder <elder@inktank.com>
Thu, 8 Nov 2012 14:01:39 +0000 (08:01 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 21:04:47 +0000 (15:04 -0600)
commit8295cda7ceceb7b25f9a12cd21bbfb6206e28a6d
tree0844fc26b1f835dbabd8b0fed4ba957d49a6b790
parent8986cb37b1cf1f54b35f062f0a12dc68dd89f311
rbd: encapsulate handling for a single request

In rbd_rq_fn(), requests are fetched from the block layer and each
request is processed, looping through the request's list of bio's
until they've all been consumed.

Separate the handling for a single request into its own function to
make it a bit easier to see what's going on.

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