]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: pass num_op with ops array
authorAlex Elder <elder@inktank.com>
Wed, 14 Nov 2012 03:11:15 +0000 (21:11 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 22:34:57 +0000 (16:34 -0600)
commit76d81a2424edc661dc586c2ec00e6bed673af09b
treec306cebf88a941891d860d1e1648f77c65d88b2f
parent986aa5d86e42efa3bd3a62f4745b1d04fb42fbf5
rbd: pass num_op with ops array

Add a num_op parameter to rbd_do_request() and rbd_req_sync_op() to
indicate the number of entries in the array.  The callers of these
functions always know how many entries are in the array, so just
pass that information down.

This is in anticipation of eliminating the extra zero-filled entry
in these ops arrays.

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