Re: Avoiding EBUSY on TPM writes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 15, 2023 at 07:38:57PM -0400, James Bottomley wrote:

> However, this behaviour is per-fd, why can't you just open multiple
> fd's for your multiple accesses?  /dev/tpmrm0 will assure that they
> don't see each other and that the commands are properly sequenced
> without giving you an EBUSY.  And bonus you don't have to keep global
> track of how many transient resources you've used.

Argh! Sorry, I'd missed that this was per-fd - that makes complete 
sense. Let me figure out why we're re-using the same fd for multiple 
requests.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux