git: DragonFly_RELEASE_5_0 dm - synchronize disk info before returning

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 18 12:28:19 PDT 2018


commit 7411575e035c9d269741ca6015487db42f086fec
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Mar 18 12:26:17 2018 -0700

    dm - synchronize disk info before returning
    
    * DM now issues a disk_config(NULL) after setting up the disk info
      in order to wait for the probe to complete, otherwise callers
      may race trying to open() the disk device before it is actually
      ready.
    
    * Fixes cryptsetup luksOpen errors which occur due to probe races,
      typically when used in a VM or qemu.
    
    Reported-by: Aaron LI

Summary of changes:
 sys/dev/disk/dm/device-mapper.c | 5 +++++
 1 file changed, 5 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7411575e035c9d269741ca6015487db42f086fec


-- 
DragonFly BSD source repository



More information about the Commits mailing list