rbd: add rbd_obj_request_error() helper
authorIlya Dryomov <idryomov@gmail.com>
Mon, 26 Sep 2016 13:43:52 +0000 (15:43 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Oct 2016 14:13:49 +0000 (16:13 +0200)
commit0dcc685e7dd7190dcaa5435e9c14150f1d405b7b
tree42a0cb0231eecec7b9fedd5808a6a336695325db
parent04dc923c9e4c43df7d2d94f290189785d3172326
rbd: add rbd_obj_request_error() helper

Pull setting an error and marking a request done code into a new
helper.  obj_request_img_data_test() check isn't strictly needed right
now, but makes it applicable to !img_data requests and a bit safer.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c