From: Djalal Harouni Date: Tue, 3 Jan 2012 01:31:52 +0000 (+0100) Subject: ext{3,4}: Fix potential race when setversion ioctl updates inode X-Git-Tag: v3.3-rc1~149^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2155b9cc5a193e85194bbeaae2e2e4512dd597;p=pandora-kernel.git ext{3,4}: Fix potential race when setversion ioctl updates inode The EXT{3,4}_IOC_SETVERSION ioctl() updates i_ctime and i_generation without i_mutex. This can lead to a race with the other operations that update i_ctime. This is not a big issue but let's make the ioctl consistent with how we handle e.g. other timestamp updates and use i_mutex to protect inode changes. Signed-off-by: Djalal Harouni Signed-off-by: Jan Kara --- Reading git-diff-tree failed