]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: char: Get rid of Big MTD Lock
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Wed, 17 Feb 2021 21:18:45 +0000 (22:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:49 +0000 (09:37 +0100)
commit1ad55288829c78e85bfe7d0c86d75415adf5f305
treee68905b4eb37887cb6902ea671db393be2034f41
parentecd400ce5f97e03aed6bef9bc4efb1befdbf779b
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
drivers/mtd/mtdchar.c
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h