From: Al Viro Date: Sat, 26 Jan 2013 00:11:36 +0000 (+0000) Subject: locking in fs/9p ->readdir() X-Git-Tag: v3.9-rc1~136^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ffdea7ea36cd1efebab65d1b221f05deaab00cd;p=pandora-kernel.git locking in fs/9p ->readdir() ... is really excessive. First of all, ->readdir() is serialized by file->f_path.dentry->d_inode->i_mutex; playing with file->f_path.dentry->d_lock is not buying you anything. Moreover, rdir->mutex is pointless for exactly the same reason - you'll never see contention on it. While we are at it, there's no point in having rdir->buf a pointer - you have it point just past the end of rdir, so it might as well be a flex array (and no, it's not a gccism). Absolutely untested patch follows: Signed-off-by: Al Viro Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed