@@ -352,7 +352,6 @@ struct rbd_img_request {
struct mutex state_mutex;
int pending_result;
struct work_struct work;
- int work_result;
struct kref kref;
};
@@ -2834,13 +2833,13 @@ static void rbd_img_handle_request_work(struct work_struct *work)
struct rbd_img_request *img_req =
container_of(work, struct rbd_img_request, work);
- rbd_img_handle_request(img_req, img_req->work_result);
+ rbd_img_handle_request(img_req, img_req->pending_result);
}
static void rbd_img_schedule(struct rbd_img_request *img_req, int result)
{
INIT_WORK(&img_req->work, rbd_img_handle_request_work);
- img_req->work_result = result;
+ img_req->pending_result = result;
queue_work(rbd_wq, &img_req->work);
}
Use 'pending_result' instead of 'work_result' and kill the latter. Signed-off-by: Hannes Reinecke <hare@suse.de> --- drivers/block/rbd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)