Skip to content

Refactor snapshot vs nocow writers locking

Nikolay Borisov linux-btrfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v2 posting 2/22 patches 5 repliesSuperseded
  3. v2 posting 1/22 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches11 repliesSuperseded

V2 from the cover letter

* Fixed all checkpatch warnings (Andrea Parri)
* Properly call write_unlock in btrfs_drw_try_write_lock (Filipe Manana)
* Comment fix.
* Stress tested it via locktorture. Survived for 8 straight days on a 4 socket 48 thread machine.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: convert snapshot/nocow exlcusion to drw lockfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/extent-tree.c +3 more+25 -1030 replies
1/2btrfs: Implement DRW lockfs/btrfs/ctree.h fs/btrfs/locking.c fs/btrfs/locking.h+112 -00 replies
2/2btrfs: Hook btrfs' DRW lock to locktorture infrastructurefs/btrfs/locking.c fs/btrfs/locking.h kernel/locking/locktorture.c+82 -11 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] Refactor snapshot vs nocow writers locking

Here is v3 of the DRW locking patches.

Main changes in this verison:
* Removed EXPORT_SYMBOL for function since I do not intend to submit the locktorture patch
* Added high-level comment as per David's request.

V2:
* Fixed all checkpatch warnings (Andrea Parri)
* Properly call write_unlock in btrfs_drw_try_write_lock (Filipe Manana)
* Comment fix.
* Stress tested it via locktorture. Survived for 8 straight days on a 4 socket 48 thread machine.

Nikolay Borisov (2):
btrfs: convert snapshot/nocow exlcusion to drw lock
btrfs: Hook btrfs' DRW lock to locktorture infrastructure

 fs/btrfs/ctree.h             |  9 +----
 fs/btrfs/disk-io.c           | 46 ++++++---------------
 fs/btrfs/extent-tree.c       | 44 ---------------------
 fs/btrfs/file.c              | 11 +++---
 fs/btrfs/inode.c             |  8 ++--
 fs/btrfs/ioctl.c             | 10 ++---
 fs/btrfs/locking.c           |  5 +++
 fs/btrfs/locking.h           |  1 +
 kernel/locking/locktorture.c | 77 +++++++++++++++++++++++++++++++++++-
 9 files changed, 107 insertions(+), 104 deletions(-)

--
2.17.1