mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
mtd: char: Get rid of Big MTD Lock
Get rid of central chrdev MTD lock, which prevents simultaneous operations on completely independent physical MTD chips. Replace it with newly introduced per-master mutex. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210217211845.43364-2-alexander.sverdlin@nokia.com
This commit is contained in:
committed by
Miquel Raynal
parent
ecd400ce5f
commit
1ad5528882
@@ -229,6 +229,7 @@ struct mtd_part {
|
||||
*/
|
||||
struct mtd_master {
|
||||
struct mutex partitions_lock;
|
||||
struct mutex chrdev_lock;
|
||||
unsigned int suspended : 1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user