dm - synchronize disk info before returning
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 18 Mar 2018 19:26:17 +0000 (12:26 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 18 Mar 2018 19:26:17 +0000 (12:26 -0700)
commit8a5197dde90812c26b015b39b499a424148e6029
tree204df154df6533142e7cd2b13e2524298c12e12c
parent706a3044afd27c3fecfdf57bec1695310e53e228
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
sys/dev/disk/dm/device-mapper.c