commit | 770908db2adb9dcfa2dabf739ac4d59be7f91ddc | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <miklos@szeredi.hu> | Tue Apr 14 19:48:39 2009 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue May 19 22:20:15 2009 -0700 |
tree | 48118e5774e9ca984bca53966eb2e95223bc1fe4 | |
parent | 1763c368233c8ebf9c5596cb3230a0e4942459b4 [diff] |
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 <mszeredi@suse.cz> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>