Date: Mon, 14 Sep 2020 23:51:14 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365737 - head/sys/geom/eli Message-ID: <202009142351.08ENpEQd035480@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Mon Sep 14 23:51:14 2020 New Revision: 365737 URL: https://svnweb.freebsd.org/changeset/base/365737 Log: We don't need the sc_ekeys_lock in standalone environment. When we bring in geli into the boot loader, we are single threaded so we don't have to worry about locking. We have no mutexes, and don't need to use them, so comment it out. MFC After: 3 days Modified: head/sys/geom/eli/g_eli.h Modified: head/sys/geom/eli/g_eli.h ============================================================================== --- head/sys/geom/eli/g_eli.h Mon Sep 14 23:49:17 2020 (r365736) +++ head/sys/geom/eli/g_eli.h Mon Sep 14 23:51:14 2020 (r365737) @@ -181,7 +181,9 @@ struct g_eli_softc { uint8_t sc_ekey[G_ELI_DATAKEYLEN]; TAILQ_HEAD(, g_eli_key) sc_ekeys_queue; RB_HEAD(g_eli_key_tree, g_eli_key) sc_ekeys_tree; +#ifndef _STANDALONE struct mtx sc_ekeys_lock; +#endif uint64_t sc_ekeys_total; uint64_t sc_ekeys_allocated; u_int sc_ealgo;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009142351.08ENpEQd035480>