Skip to content

ovl: concurrent copy up

Amir Goldstein linux-fsdevel linux-unionfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 3 repliesIn review
  2. v36 patches 6 repliesSuperseded
  3. v16 patches 10 repliesSuperseded

Changes in v4 from the cover letter

- Remove redundant dir argument from vfs_tmpfile()

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vfs: create vfs helper vfs_tmpfile()fs/namei.c include/linux/fs.h+46 -252 replies
2/6ovl: check if upperdir fs supports O_TMPFILEfs/overlayfs/overlayfs.h fs/overlayfs/ovl_entry.h fs/overlayfs/super.c+20 -00 replies
3/6ovl: rearrange code in ovl_copy_up_locked()fs/overlayfs/copy_up.c+25 -240 replies
4/6ovl: copy up regular file using O_TMPFILEfs/overlayfs/copy_up.c+20 -70 replies
5/6ovl: introduce copy up waitqueuefs/overlayfs/overlayfs.h fs/overlayfs/ovl_entry.h fs/overlayfs/super.c +1 more+35 -00 replies
6/6ovl: concurrent copy up of regular filesfs/overlayfs/copy_up.c+26 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/6] ovl: concurrent copy up

Miklos,

Here is v4. Only change from v3 is in patch 1.
Since I only saw your replies for patches 1,2,6,
I assume the the rest are ok?

Patches 1 is the vfs_tmpfile() helper.

Patches 2-4 implement copy up of regular file with the helper.

Patch 5 is the waitqueue patch you sent me.

Patch 6 puts the pieces together for concurrent copy up.

Tested concurrent copy up with this simple test:

$ touch /lower/{empty,4g}
$ truncate -s 4g /lower/4g
$ touch /mnt/4g &  # takes a while
$ touch /mnt/empty # exits immediately
$ touch /mnt/4g    # blocks until %1 completes and can be interrupted

Tested vfs_tmpfile() with generic/004 and generic/389.

Tested with the new overlay/021 which exercises concurrent copy up using 8 processes on 4 directories and 4K files.

v4:
- Remove redundant dir argument from vfs_tmpfile()

v3:
- Move more code into vfs_tmpfile() helper
- Address Miklos' review comments on patch 6

v2:
- Withdraw the workdir = upperdir hack

v1:
- Initial version

Amir Goldstein (6):
vfs: create vfs helper vfs_tmpfile()
ovl: check if upperdir fs supports O_TMPFILE
ovl: rearrange code in ovl_copy_up_locked()
ovl: copy up regular file using O_TMPFILE
ovl: introduce copy up waitqueue
ovl: concurrent copy up of regular files

 fs/namei.c               | 68 +++++++++++++++++++++++--------------
 fs/overlayfs/copy_up.c   | 88 +++++++++++++++++++++++++++++++++++-------------
 fs/overlayfs/overlayfs.h | 11 ++++++
 fs/overlayfs/ovl_entry.h |  3 ++
 fs/overlayfs/super.c     | 11 ++++++
 fs/overlayfs/util.c      | 30 +++++++++++++++++
 include/linux/fs.h       |  3 ++
 7 files changed, 165 insertions(+), 49 deletions(-)
Signature · 1 line
2.7.4