Skip to content
Commit 328eaaba authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Jens Axboe
Browse files

ocfs2: fix i_mutex locking in ocfs2_splice_to_file()



Rearrange locking of i_mutex on destination and call to
ocfs2_rw_lock() so locks are 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: default avatarMiklos Szeredi <mszeredi@suse.cz>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent eb443e5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment