splice: fix i_mutex locking in generic_splice_write()
commiteb443e5a25d43996deb62b9bcee1a4ce5dea2ead
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 14 Apr 2009 17:48:38 +0000 (14 19:48 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:10:11 +0000 (15 12:10 +0200)
tree7f63bb98302137e249904d608d5bb4b919a987ed
parent2933970b960223076d6affcf7a77e2bc546b8102
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