]> git.baikalelectronics.ru Git - kernel.git/commit
splice: fix i_mutex locking in generic_splice_write()
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 14 Apr 2009 17:48:38 +0000 (19:48 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:10:11 +0000 (12:10 +0200)
commitba6cb8a7ba70b2fb4c4cc792b51bd357fc9dd7c6
tree7f63bb98302137e249904d608d5bb4b919a987ed
parent660f0491c0f51da97605ac296347999a4c1e4905
splice: fix i_mutex locking in generic_splice_write()

Rearrange locking of i_mutex on destination so it's 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/splice.c