]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] 9p: fix segfault caused by race condition in meta-data operations
authorEric Van Hensbergen <ericvh@gmail.com>
Fri, 26 Jan 2007 08:57:06 +0000 (00:57 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 26 Jan 2007 21:51:00 +0000 (13:51 -0800)
commit249a9c9e45d724e5669c1d5c9aa2e62403af11cf
treebb8a2afc766c16e3349e03dfb8a706dca6408395
parent51d13359c481d7d032e3c5c909772bc5687bf896
[PATCH] 9p: fix segfault caused by race condition in meta-data operations

Running dbench multithreaded exposed a race condition where fid structures
were removed while in use.  This patch adds semaphores to meta-data operations
to protect the fid structure.  Some cleanup of error-case handling in the
inode operations is also included.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/9p/fid.c
fs/9p/fid.h
fs/9p/vfs_file.c
fs/9p/vfs_inode.c