git: sys/vfs/hammer: Fix possible race on volume-del

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:33 PDT 2015


commit b6abf391331196a9bc858db937aa8a839ea0fedb
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 7 23:11:29 2015 +0900

    sys/vfs/hammer: Fix possible race on volume-del
    
    hmp->volume_to_remove should get reset to -1 only after the
    volume is successfully removed. Otherwise there is a possible
    race between this and blockmap allocation code who checks if
    hmp->volume_to_remove is the volume being removed.
    
    Spotted-by: dillon

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

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list