From: Miklos Szeredi Date: Tue, 14 Apr 2009 17:48:39 +0000 (+0200) Subject: ocfs2: fix i_mutex locking in ocfs2_splice_to_file() X-Git-Tag: v2.6.27.24~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=770908db2adb9dcfa2dabf739ac4d59be7f91ddc;p=pandora-kernel.git ocfs2: fix i_mutex locking in ocfs2_splice_to_file() commit 328eaaba4e41a04c1dc4679d65bea3fee4349d86 upstream. Rearrange locking of i_mutex on destination and call to ocfs2_rw_lock() so locks are only held while buffers are copied with the pipe_to_file() actor, and not while waiting for more data on the pipe. Signed-off-by: Miklos Szeredi Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed