From: Mark Fasheh Date: Tue, 17 Oct 2006 08:31:38 +0000 (+0200) Subject: [PATCH] Take i_mutex in splice_from_pipe() X-Git-Tag: v2.6.19-rc3~32^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62752ee198dca9209b7dee504763e51b11e9e0ca;p=pandora-kernel.git [PATCH] Take i_mutex in splice_from_pipe() The splice_actor may be calling ->prepare_write() and ->commit_write(). We want i_mutex on the inode being written to before calling those so that we don't race i_size changes. The double locking behavior is done elsewhere in splice.c, and if we eventually want _nolock variants of generic_file_splice_write(), fs modules might have to replicate the nasty locking code. We introduce inode_double_lock() and inode_double_unlock() to consolidate the locking rules into one set of functions. Signed-off-by: Mark Fasheh Signed-off-by: Jens Axboe --- Reading git-diff-tree failed