From owner-svn-src-vendor@freebsd.org Fri Apr 14 18:11:54 2017 Return-Path: Delivered-To: svn-src-vendor@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 E6EC5D3E967; Fri, 14 Apr 2017 18:11:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B8B9EA4; Fri, 14 Apr 2017 18:11:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3EIBrFX064587; Fri, 14 Apr 2017 18:11:53 GMT (envelope-from avg@FreeBSD.org) Received: (from avg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3EIBrrx064586; Fri, 14 Apr 2017 18:11:53 GMT (envelope-from avg@FreeBSD.org) Message-Id: <201704141811.v3EIBrrx064586@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avg set sender to avg@FreeBSD.org using -f From: Andriy Gapon Date: Fri, 14 Apr 2017 18:11:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r316899 - vendor-sys/illumos/dist/uts/common/fs/zfs X-SVN-Group: vendor-sys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 18:11:55 -0000 Author: avg Date: Fri Apr 14 18:11:53 2017 New Revision: 316899 URL: https://svnweb.freebsd.org/changeset/base/316899 Log: 7659 Missing thread_exit() in dmu_send.c illumos/illumos-gate@f2c1e9bc48e4e20e8e9bd56203a75ff2e219b345 https://github.com/illumos/illumos-gate/commit/f2c1e9bc48e4e20e8e9bd56203a75ff2e219b345 https://www.illumos.org/issues/7659 Two threads send_traverse_thread() and receive_writer_thread() should end with thread_exit(); Mostly a cosmetic issue under IllumOS. https://github.com/openzfs/openzfs/pull/252 Reviewed by: Paul Dagnelie Reviewed by: Matt Ahrens Approved by: Richard Lowe Author: Jorgen Lundman Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c ============================================================================== --- vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c Fri Apr 14 18:11:16 2017 (r316898) +++ vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c Fri Apr 14 18:11:53 2017 (r316899) @@ -576,6 +576,7 @@ send_traverse_thread(void *arg) data = kmem_zalloc(sizeof (*data), KM_SLEEP); data->eos_marker = B_TRUE; bqueue_enqueue(&st_arg->q, data, 1); + thread_exit(); } /* @@ -2815,6 +2816,7 @@ receive_writer_thread(void *arg) rwa->done = B_TRUE; cv_signal(&rwa->cv); mutex_exit(&rwa->mutex); + thread_exit(); } static int