[PATCH v3 02/10] mtd: powernv_flash: Lock around concurrent access to OPAL

Balbir Singh bsingharora at gmail.com
Mon Jul 17 17:34:35 AEST 2017


On Wed, 2017-07-12 at 14:22 +1000, Cyril Bur wrote:
> OPAL can only manage one flash access at a time and will return an
> OPAL_BUSY error for each concurrent access to the flash. The simplest
> way to prevent this from happening is with a mutex.
> 
> Signed-off-by: Cyril Bur <cyrilbur at gmail.com>
> ---

Should the mutex_lock() be mutex_lock_interruptible()? Are we OK waiting on
the mutex while other operations with the lock are busy?

Balbir Singh.



More information about the Linuxppc-dev mailing list