Message ID | 533184AF.9050101@ieee.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2128,11 +2128,11 @@ static void rbd_img_obj_callback(struct rbd_assert(img_request->obj_request_count > 0); rbd_assert(which != BAD_WHICH); rbd_assert(which < img_request->obj_request_count); - rbd_assert(which >= img_request->next_completion); spin_lock_irq(&img_request->completion_lock); if (which != img_request->next_completion) goto out; + rbd_assert(which > img_request->next_completion); for_each_obj_request_from(img_request, obj_request) { rbd_assert(more);