diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2021-02-17 22:18:45 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-03-11 09:37:49 +0100 |
commit | 1ad55288829c78e85bfe7d0c86d75415adf5f305 (patch) | |
tree | e68905b4eb37887cb6902ea671db393be2034f41 /include | |
parent | ecd400ce5f97e03aed6bef9bc4efb1befdbf779b (diff) | |
download | linux-stable-1ad55288829c78e85bfe7d0c86d75415adf5f305.tar.gz linux-stable-1ad55288829c78e85bfe7d0c86d75415adf5f305.tar.bz2 linux-stable-1ad55288829c78e85bfe7d0c86d75415adf5f305.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/mtd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 157357ec1441..ceabc2cae8a4 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -229,6 +229,7 @@ struct mtd_part { */ struct mtd_master { struct mutex partitions_lock; + struct mutex chrdev_lock; unsigned int suspended : 1; }; |