Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 18:11:45 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364774 - stable/12/sys/dev/cxgbe/cxgbei
Message-ID:  <202008251811.07PIBjWh033592@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Aug 25 18:11:45 2020
New Revision: 364774
URL: https://svnweb.freebsd.org/changeset/base/364774

Log:
  MFC r364444:
  cxgbei: destroy the worker threads' CV and mutex in stop_worker_threads.

Modified:
  stable/12/sys/dev/cxgbe/cxgbei/cxgbei.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/cxgbei/cxgbei.c
==============================================================================
--- stable/12/sys/dev/cxgbe/cxgbei/cxgbei.c	Tue Aug 25 17:23:33 2020	(r364773)
+++ stable/12/sys/dev/cxgbe/cxgbei/cxgbei.c	Tue Aug 25 18:11:45 2020	(r364774)
@@ -714,6 +714,8 @@ stop_worker_threads(void)
 			cv_wait(&cwt->cwt_cv, &cwt->cwt_lock);
 		} while (cwt->cwt_state != CWT_STOPPED);
 		mtx_unlock(&cwt->cwt_lock);
+		mtx_destroy(&cwt->cwt_lock);
+		cv_destroy(&cwt->cwt_cv);
 	}
 	free(cwt_softc, M_CXGBE);
 }



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