From: OGAWA Hirofumi Date: Mon, 16 Jul 2007 00:40:05 +0000 (+0900) Subject: fat: Fix the race of read/write the FAT12 entry X-Git-Tag: v2.6.23-rc1~786 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98283bb49c6c8c070ebde9f47489d3e9a83c1323;p=pandora-kernel.git fat: Fix the race of read/write the FAT12 entry FAT12 entry is 12bits, so it needs 2 phase to update the value. And writer and reader access it without any lock, so reader can get the half updated value. This fixes the long standing race condition by adding a global spinlock to only FAT12 for avoiding any impact against FAT16/32. Signed-off-by: OGAWA Hirofumi Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed