Date: Wed, 8 Jul 2020 12:14:35 -0600 From: Alan Somers <asomers@freebsd.org> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Are crypto(9) sessions thread safe? Message-ID: <CAOtMX2hj4d4-w5FBJgOrTSmKi5hJeWS4sK2TCL%2BBR4cQJH=wfQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Are the sessions returned by crypto_newsession safe to use concurrently from multiple threads? I ask because geli currently creates a separate thread pool for each provider, and I'm trying to change that to use a single global thread pool. So I need to know if different threads can share a crypto session, or if each geli provider will still need a pool of sessions. -Alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hj4d4-w5FBJgOrTSmKi5hJeWS4sK2TCL%2BBR4cQJH=wfQ>