]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: change struct flchip_shared spinlock locking into mutex
authorStefani Seibold <stefani@seibold.net>
Thu, 5 Aug 2010 07:19:26 +0000 (09:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:45:54 +0000 (16:45 -0700)
commit6eb22281116bd7eea73f63884b74b3c0aca0a5d3
tree5204947c3e82f4f73d5293e01da56fea52b7647d
parent01be8ecc0e14a6c3478088f73cdaf2008d1dbdec
mtd: change struct flchip_shared spinlock locking into mutex

commit 8ae664184c45def51ff0b61d4bd6c6671db6cb4f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/lpddr/lpddr_cmds.c
include/linux/mtd/flashchip.h