svn commit: r346992 - stable/11/sys/geom

Alexander Motin mav at FreeBSD.org
Wed May 1 13:43:50 UTC 2019


Author: mav
Date: Wed May  1 13:43:49 2019
New Revision: 346992
URL: https://svnweb.freebsd.org/changeset/base/346992

Log:
  MFC r346644: Call delist_dev() before destroy_dev_sched_cb().
  
  destroy_dev_sched_cb() is excessively asynchronous, and during media change
  retaste new provider may appear sooner then device of the previous one get
  destroyed.
  
  Sponsored by:	iXsystems, Inc.

Modified:
  stable/11/sys/geom/geom_dev.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/geom/geom_dev.c
==============================================================================
--- stable/11/sys/geom/geom_dev.c	Wed May  1 13:42:56 2019	(r346991)
+++ stable/11/sys/geom/geom_dev.c	Wed May  1 13:43:49 2019	(r346992)
@@ -766,6 +766,7 @@ g_dev_orphan(struct g_consumer *cp)
 		(void)set_dumper(NULL, NULL, curthread);
 
 	/* Destroy the struct cdev *so we get no more requests */
+	delist_dev(dev);
 	destroy_dev_sched_cb(dev, g_dev_callback, cp);
 }
 


More information about the svn-src-stable-11 mailing list