diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-13 11:33:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-13 11:33:09 -0700 |
commit | 9ff00d58a915b6747ba2e843ab2d04c712b4dc32 (patch) | |
tree | 3c4bed740dae7b6115b89387d766962d6dad7cd6 /fs | |
parent | 36be50515fe2aef61533b516fa2576a2c7fe7664 (diff) | |
parent | b027274d2e3a332683b73f15e5cea79c240bc9a3 (diff) | |
download | linux-9ff00d58a915b6747ba2e843ab2d04c712b4dc32.tar.bz2 |
Merge tag 'for-linus-3.4-20120513' of git://git.infradead.org/linux-mtd
Pull three MTD fixes from David Woodhouse:
- Fix a lock ordering deadlock in JFFS2
- Fix an oops in the dataflash driver, triggered by a dummy call to test
whether it has OTP functionality.
- Fix request_mem_region() failure on amsdelta NAND driver.
* tag 'for-linus-3.4-20120513' of git://git.infradead.org/linux-mtd:
mtd: ams-delta: fix request_mem_region() failure
jffs2: Fix lock acquisition order bug in gc path
mtd: fix oops in dataflash driver
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/gc.c b/fs/jffs2/gc.c index ad271c70aa25..5a2dec2b064c 100644 --- a/fs/jffs2/gc.c +++ b/fs/jffs2/gc.c @@ -234,8 +234,8 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c) return 0; jffs2_dbg(1, "No progress from erasing block; doing GC anyway\n"); - spin_lock(&c->erase_completion_lock); mutex_lock(&c->alloc_sem); + spin_lock(&c->erase_completion_lock); } /* First, work out which block we're garbage-collecting */ |