diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2019-03-01 12:06:24 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-03-05 18:55:17 +0100 |
commit | 356889c49d84f11f446ec235bd52ca1a7d581aa0 (patch) | |
tree | cb3b3171df1a20887db00657ce33bee4da50d0c1 /drivers | |
parent | 0b51c9d15ab481a5ad7124cc61f1ab5a10e57f67 (diff) | |
download | linux-356889c49d84f11f446ec235bd52ca1a7d581aa0.tar.bz2 |
rbd: clear ->xferred on error from rbd_obj_issue_copyup()
Otherwise the assert in rbd_obj_end_request() is triggered.
Fixes: 3da691bf4366 ("rbd: new request handling code")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/rbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 324f61bc5793..c247938d220d 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2585,6 +2585,7 @@ again: ret = rbd_obj_issue_copyup(obj_req, obj_req->xferred); if (ret) { obj_req->result = ret; + obj_req->xferred = 0; return true; } return false; |