Skip to content

fix i_mutex locking in splice to file

Miklos Szeredi linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6splice: split up __splice_from_pipe()fs/splice.c include/linux/splice.h+157 -780 replies
2/6splice: remove i_mutex locking in splice_from_pipe()fs/splice.c+2 -160 replies
3/6splice: fix i_mutex locking in generic_splice_write()fs/splice.c+23 -110 replies
4/6ocfs2: fix i_mutex locking in ocfs2_splice_to_file()fs/ocfs2/file.c fs/splice.c include/linux/splice.h+80 -230 replies
5/6splice: remove generic_file_splice_write_nolock()fs/splice.c include/linux/fs.h+0 -612 replies
6/6splice: add helpers for locking pipe inodefs/inode.c fs/pipe.c fs/splice.c +2 more+64 -720 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/6] fix i_mutex locking in splice to file

Jens, Mark,

This series deals with the problem of generic_file_splice_write() and ocfs2_file_splice_write() holding i_mutex (and ocfs2 lock) on destination inode across pipe_wait(), which waits for a user controlled event.

Lightly tested on ext3. The OCFS2 changes have only been compile tested.

Please review/test.

Thanks,
Miklos

--