]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: don't assign extent info in rbd_do_request()
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)
commit0c256b01b182f7e4712fedac9d0770f1e410b835
treeb91e45b3a6c7d2c39901367bb1d56992247abd8e
parentd0a5e5ec3740f9787d5feda6d2ee29142c6c4227
rbd: don't assign extent info in rbd_do_request()

In rbd_do_request() there's a sort of last-minute assignment of the
extent offset and length and payload length for read and write
operations.  Move those assignments into the caller (in those spots
that might initiate read or write operations)

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