]> git.karo-electronics.de Git - karo-tx-linux.git/commit
splice: remove i_mutex locking in splice_from_pipe()
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 14 Apr 2009 17:48:37 +0000 (19:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 May 2009 05:20:15 +0000 (22:20 -0700)
commitdbda7d1d8a375ec42a6f7602263ec854d9fd7245
tree15f7a0192dcc8200371a18baeefa0ae283c29440
parent89fd89c80b4b78862f5e5fa5c73855aade0907c7
splice: remove i_mutex locking in splice_from_pipe()

commit 2933970b960223076d6affcf7a77e2bc546b8102 upstream.

splice_from_pipe() is only called from two places:

  - generic_splice_sendpage()
  - splice_write_null()

Neither of these require i_mutex to be taken on the destination inode.

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