git: sys/vfs/hammer: Don't fail to downgrade cursor

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Aug 23 06:09:00 PDT 2015


commit ebc5d79e7f1bbe241fa96ec0fc3b61c1658b7ed5
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Aug 23 20:53:50 2015 +0900

    sys/vfs/hammer: Don't fail to downgrade cursor
    
    7ef2d7b should have placed end: before
    hammer_cursor_downgrade(cursor);.
    
    If hammer volume-del starts to reblock because of non-empty
    volume, and first reblocks data, but skips reblock for btree
    node as the node was not in that volume (data and btree node
    stored in different volume which is usually a rare case),
    then volume-del returns from hammer_reblock_helper() without
    donwgrading upgraded lock.
    
    This could happen only on volume-del, but not hammer reblock
    command since hammer reblock command never hits goto end;.

Summary of changes:
 sys/vfs/hammer/hammer_reblock.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ebc5d79e7f1bbe241fa96ec0fc3b61c1658b7ed5


-- 
DragonFly BSD source repository


More information about the Commits mailing list