git: dm - synchronize disk info before returning

Matthew Dillon dillon at
Sun Mar 18 12:28:04 PDT 2018

commit 8a5197dde90812c26b015b39b499a424148e6029
Author: Matthew Dillon <dillon at>
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
    * 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(+)

DragonFly BSD source repository

More information about the Commits mailing list