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:28:17 +0000 (12:28 -0700)
commit7411575e035c9d269741ca6015487db42f086fec
treee524d130c2cdb791f47e20fc2ae4e9d52f6225f6
parentdb037feee6aaa98dca863e2e8d8cb62b8b0a5671
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