lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 251/639] rbd: clear ->xferred on error from rbd_obj_issue_copyup()
    Date
    From: Ilya Dryomov <idryomov@gmail.com>

    [ Upstream commit 356889c49d84f11f446ec235bd52ca1a7d581aa0 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/block/rbd.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
    index 585378bc988cd..b942f4c8cea8c 100644
    --- a/drivers/block/rbd.c
    +++ b/drivers/block/rbd.c
    @@ -2506,6 +2506,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;
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-01-24 12:14    [W:4.014 / U:0.940 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site