summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>2021-02-17 22:18:45 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 09:37:49 +0100
commit1ad55288829c78e85bfe7d0c86d75415adf5f305 (patch)
treee68905b4eb37887cb6902ea671db393be2034f41 /include
parentecd400ce5f97e03aed6bef9bc4efb1befdbf779b (diff)
downloadlinux-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.h1
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;
};