]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: fix i_mutex locking in ocfs2_splice_to_file()
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 14 Apr 2009 17:48:39 +0000 (19:48 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:10:12 +0000 (12:10 +0200)
commit5a9ad0644d7e066d0eed7639c15b23711326ae89
tree171bf86b590a841729bab11feec874869bcab49e
parentba6cb8a7ba70b2fb4c4cc792b51bd357fc9dd7c6
ocfs2: fix i_mutex locking in ocfs2_splice_to_file()

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>
fs/ocfs2/file.c
fs/splice.c
include/linux/splice.h