]> git.baikalelectronics.ru Git - kernel.git/commit
Replace BKL with superblock lock in fat/msdos/vfat
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 May 2008 02:53:01 +0000 (19:53 -0700)
committerJonathan Corbet <corbet@lwn.net>
Fri, 20 Jun 2008 20:05:54 +0000 (14:05 -0600)
commit5281570972c77687d1ef9e432fcdfdcd512b518b
tree7db64d90ad2b1bd9d0c2e13b3b679a5a7d17f969
parentb3d4c9dd32bd6093019ee02d3cca44d2b149b50b
Replace BKL with superblock lock in fat/msdos/vfat

This replaces the use of the BKL in the FAT family of filesystems with the
existing superblock lock instead.

The code already appears to do mostly proper locking with its own private
spinlocks (and mutexes), but while the BKL could possibly have been
dropped entirely, converting it to use the superblock lock (which is just
a regular mutex) is the conservative thing to do.

As a per-filesystem mutex, it not only won't have any of the possible
latency issues related to the BKL, but the lock is obviously private to
the particular filesystem instance and will thus not cause problems for
entirely unrelated users like the BKL can.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
fs/fat/cache.c
fs/fat/dir.c
fs/fat/file.c
fs/fat/inode.c
fs/msdos/namei.c
fs/vfat/namei.c