diff options
author | Adrian Hunter <ext-adrian.hunter@nokia.com> | 2008-08-22 14:23:35 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-25 14:34:02 +0300 |
commit | 601c0bc46753007be011b513ba4fc50ed8e30aef (patch) | |
tree | 39017065a8418b60362686a7771afe138e100c08 /fs/ubifs/budget.c | |
parent | 761e29f3bb19b05bea55285dfdf2d28e001a63b8 (diff) | |
download | linux-601c0bc46753007be011b513ba4fc50ed8e30aef.tar.gz linux-601c0bc46753007be011b513ba4fc50ed8e30aef.tar.bz2 linux-601c0bc46753007be011b513ba4fc50ed8e30aef.zip |
UBIFS: allow for racing between GC and TNC
The TNC mutex is unlocked prematurely when reading leaf nodes
with non-hashed keys. This is unsafe because the node may be
moved by garbage collection and the eraseblock unmapped, although
that has never actually happened during stress testing.
This patch fixes the flaw by detecting the race and retrying with
the TNC mutex locked.
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Diffstat (limited to 'fs/ubifs/budget.c')
0 files changed, 0 insertions, 0 deletions