Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2017 13:56:02 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315196 - head/sys/geom/part
Message-ID:  <201703131356.v2DDu2iB073710@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Mon Mar 13 13:56:01 2017
New Revision: 315196
URL: https://svnweb.freebsd.org/changeset/base/315196

Log:
  After r315112 I broke the tests with eli, instead to pass 0, I should pass
  M_NOWAIT to g_media_changed() that will call g_post_event() with this flag.
  
  Reported by:	lwhsu, ngie and ae

Modified:
  head/sys/geom/part/g_part.c

Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c	Mon Mar 13 11:09:17 2017	(r315195)
+++ head/sys/geom/part/g_part.c	Mon Mar 13 13:56:01 2017	(r315196)
@@ -891,7 +891,7 @@ g_part_ctl_commit(struct gctl_req *req, 
 			/* Notify consumers that provider might be changed. */
 			if (entry->gpe_modified && (
 			    entry->gpe_pp->acw + entry->gpe_pp->ace) == 0)
-				g_media_changed(entry->gpe_pp, 0);
+				g_media_changed(entry->gpe_pp, M_NOWAIT);
 			entry->gpe_created = 0;
 			entry->gpe_modified = 0;
 			continue;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703131356.v2DDu2iB073710>