]> git.kernelconcepts.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>
Mon, 18 May 2009 23:35:22 +0000 (16:35 -0700)
commit7a621671942307c9dbe201f461209c69ade14fae
treefe702b0b086a62e09eb6cc10c1fb8c2ae3276556
parent5d1dfedd7906f57927c354e2434d21d3a59ef755
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