aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorStefani Seibold <stefani@seibold.net>2010-08-05 09:19:26 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-06 09:22:16 +0100
commit8ae664184c45def51ff0b61d4bd6c6671db6cb4f (patch)
treee377d32da757a7c61150f2569bda85411a1835eb /include/linux/mtd
parentmtd: Missing slab.h include (diff)
downloadlinux-dev-8ae664184c45def51ff0b61d4bd6c6671db6cb4f.tar.xz
linux-dev-8ae664184c45def51ff0b61d4bd6c6671db6cb4f.zip
mtd: change struct flchip_shared spinlock locking into mutex
This patch prevent to schedule while atomic by changing the flchip_shared spinlock into a mutex. This should be save since no atomic path will use this lock. It was suggested by Arnd Bergmann and Vasiliy Kulikov. Signed-off-by: Stefani Seibold <stefani@seibold.net> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/flashchip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/flashchip.h b/include/linux/mtd/flashchip.h
index f43e9b49b751..23cc10f8e343 100644
--- a/include/linux/mtd/flashchip.h
+++ b/include/linux/mtd/flashchip.h
@@ -92,7 +92,7 @@ struct flchip {
/* This is used to handle contention on write/erase operations
between partitions of the same physical chip. */
struct flchip_shared {
- spinlock_t lock;
+ struct mutex lock;
struct flchip *writing;
struct flchip *erasing;
};