From owner-freebsd-hackers@freebsd.org Mon Aug 7 00:11:46 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B75BDD2753 for ; Mon, 7 Aug 2017 00:11:46 +0000 (UTC) (envelope-from Keith.Owens2@dell.com) Received: from esa1.dell-outbound.iphmx.com (esa1.dell-outbound.iphmx.com [68.232.153.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.dell-outbound.iphmx.com", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 263B473522 for ; Mon, 7 Aug 2017 00:11:45 +0000 (UTC) (envelope-from Keith.Owens2@dell.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1502064598; x=1533600598; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=rs6G2o4oOZkx+766YEyoFBYy9viFcquj2DXb5Gwckvo=; b=rZ4G5GLyWAqbQwzMqlZbRi0aCFsWguhZciR0x6c3PAS/2U3L1Jc4vNW9 AAWymRAMqhzseDmB2I3eaan1F1b2m9El+9HJiI0elzmFkpXXUeT4cCQDj A+m2UVT++YO5hPimvvGlYhBEPgYVMybi+NIlb1MoE6lKTlDd4Czbfvno5 4=; Received: from esa1.dell-outbound2.iphmx.com ([68.232.153.201]) by esa1.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2017 19:02:49 -0500 From: "Owens, Keith" Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa1.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2017 05:52:36 +0600 Received: from maildlpprd54.lss.emc.com (maildlpprd54.lss.emc.com [10.106.48.158]) by mailuogwprd52.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v7703Hj1006000 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 6 Aug 2017 20:03:18 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com v7703Hj1006000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=isilon.com; s=jan2013; t=1502064198; bh=7hng1dY7JKTcSoDAVRfm0zABnCg=; h=From:To:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; b=ZU/sWpwaPzn8UXHttTSz/dWIvJbnlAZEJXZSEfdqV630PXqwgkhJfcdO0nSm44vBv xCeMhk+gjfqhx9U8REsCz8/x2UNAh8nCaeJWp1/im3eG3PUTR7MpX4rbbI5YZwaxn+ /J0v4V0wCW3zFVaoxCbabE1gD7LFpoAhPDDdPQwM= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com v7703Hj1006000 Received: from mailusrhubprd54.lss.emc.com (mailusrhubprd54.lss.emc.com [10.106.48.19]) by maildlpprd54.lss.emc.com (RSA Interceptor) for ; Sun, 6 Aug 2017 20:03:00 -0400 Received: from MXHUB102.corp.emc.com (MXHUB102.corp.emc.com [10.253.58.15]) by mailusrhubprd54.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v77032co001115 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 6 Aug 2017 20:03:03 -0400 Received: from MX202CL01.corp.emc.com ([fe80::401b:e935:5cb1:a681]) by MXHUB102.corp.emc.com ([::1]) with mapi id 14.03.0352.000; Sun, 6 Aug 2017 20:03:02 -0400 To: "freebsd-hackers@freebsd.org" Subject: Writing a GEOM class, threads that can or cannot sleep Thread-Topic: Writing a GEOM class, threads that can or cannot sleep Thread-Index: AdMPEIjWIJjYg4smSveLg5AfG9EQsQ== Date: Mon, 7 Aug 2017 00:03:01 +0000 Message-ID: <0A22297308D147479E18AA1807A03807017CD4A8@MX202CL01.corp.emc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.243.43] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd54.lss.emc.com X-RSA-Classifications: public X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 00:11:46 -0000 Looking at https://www.freebsd.org/doc/en/articles/geom-class/article.html,= section 4.7.=0A= =0A= "The event functions are" ... "These functions are called from the g_down k= ernel thread and there can be no sleeping in this context".=0A= =0A= Correct me if I'm wrong, but only the start event goes via g_down.=0A= dumpconf, orphan, spoiled events go via g_event which can sleep.=0A= access can be called from any code on any thread (including g_down) so it m= ust not sleep.=0A= =0A= What is the process for updating articles?=0A=