]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 May 2009 05:20:15 +0000 (22:20 -0700)
commit1763c368233c8ebf9c5596cb3230a0e4942459b4
tree9ad1f7a0e1fecf39dc7d58d0bc9d1ffd638201f6
parentdbda7d1d8a375ec42a6f7602263ec854d9fd7245
splice: fix i_mutex locking in generic_splice_write()

commit eb443e5a25d43996deb62b9bcee1a4ce5dea2ead upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/splice.c