[PATCH v8 03/10] tpm: Provide strong locking for device removal

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe Add a read/write semaphore around the ops function pointers so ops can be set to null when the driver un-registers. Previously the tpm core expected module locking to be enough to ensure that tpm_unregister could not be called during

[PATCH v8 03/10] tpm: Provide strong locking for device removal

2016-03-13 Thread Stefan Berger
From: Jason Gunthorpe Add a read/write semaphore around the ops function pointers so ops can be set to null when the driver un-registers. Previously the tpm core expected module locking to be enough to ensure that tpm_unregister could not be called during certain times, however that hasn't been