]> git.baikalelectronics.ru Git - kernel.git/commit
xen blkfront: Delay wait for block devices until after the disk is added
authorChristian Limpach <Christian.Limpach@xensource.com>
Wed, 2 Apr 2008 17:54:04 +0000 (10:54 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Apr 2008 21:57:33 +0000 (23:57 +0200)
commit30e20e8907e4f5144a9b7526125b0cc9df9fbdb2
tree20bf47ccdd80ead20c69f8a536849c9cf8dd3223
parent920ecd380cc71ce38d28bff56bc5f99accca49a2
xen blkfront: Delay wait for block devices until after the disk is added

When the xen block frontend driver is built as a module the module load
is only synchronous up to the point where the frontend and the backend
become connected rather than when the disk is added.

This means that there can be a race on boot between loading the module and
loading the dm-* modules and doing the scan for LVM physical volumes (all
in the initrd). In the failure case the disk is not present until after the
scan for physical volumes is complete.

Taken from:

  http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/11483a00c017

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/block/xen-blkfront.c
drivers/xen/xenbus/xenbus_probe.c
include/xen/xenbus.h