]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r266444:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Jun 2014 10:14:03 +0000 (10:14 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Jun 2014 10:14:03 +0000 (10:14 +0000)
commit8cd05e7a241e9fa828d3b84671de1a31072b60b8
treed8dad7676d400be04d4cfeddd97a5e99173879dc
parent5dcc19d4343eadb2314494445ed4fae5666db1fc
MFC r266444:
  We have two functions from where a geom orphan method could be called:
  g_orphan_register and g_resize_provider_event. Both are called from the
  event queue. Also we have GEOM_DEV class, which does deferred destroy
  for its consumers via g_dev_destroy (also called from the event queue).
  So it is possible, that for some consumers an orphan method will be
  called twice. This triggers panic in g_dev_orphan.
  Check that consumer isn't already orphaned before call orphan method.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/geom/geom_event.c