Re: [PATCH v9 14/17] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2018-11-19 Thread Jarkko Sakkinen
On Sun, Nov 18, 2018 at 12:51:04PM -0700, Jason Gunthorpe wrote: > On Sun, Nov 18, 2018 at 02:47:47PM +0200, Jarkko Sakkinen wrote: > > Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are > > anyway used in most of the call sites except in tpmrm_release() where we > > take the

Re: [PATCH v9 14/17] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2018-11-18 Thread Jason Gunthorpe
On Sun, Nov 18, 2018 at 02:47:47PM +0200, Jarkko Sakkinen wrote: > Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are > anyway used in most of the call sites except in tpmrm_release() where we > take the locks manually. > > Signed-off-by: Jarkko Sakkinen > Reviewed-by: Stefa