diff options
| author | Joakim Tjernlund <[email protected]> | 2011-02-07 17:07:11 +0100 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2011-03-11 12:09:07 +0000 |
| commit | ecf3fde07c8dcb92a1bf3fbdfe70905d85cd00e1 (patch) | |
| tree | b45b4729fdd5e49f588629a3da968a4a90aa401f /fs/jbd/commit.c | |
| parent | ceabebb2bd2672f709e4454e16bc6042732e2dfe (diff) | |
mtd: fix race in cfi_cmdset_0001 driver
As inval_cache_and_wait_for_operation() drop and reclaim the lock
to invalidate the cache, some other thread may suspend the operation
before reaching the for(;;) loop. Therefore the loop must start with
checking the chip->state before reading status from the chip.
Signed-off-by: Joakim Tjernlund <[email protected]>
Acked-by: Michael Cashwell <[email protected]>
Acked-by: Stefan Bigler <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions