Rearrange inode locking
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | btrfs: Move pos increment and pagecache extension to btrfs_buffered_write()fs/ | +5 | 0 replies | |
| 2/8 | btrfs: Move FS error state bit early during writefs/ | +9 | 2 replies | |
| 3/8 | btrfs: Introduce btrfs_write_check()fs/ | +71 | 0 replies | |
| 4/8 | btrfs: Introduce btrfs_inode_lock()/unlock()fs/ fs/ | +50 | 5 replies | |
| 5/8 | btrfs: Push inode locking and unlocking in buffered/direct writefs/ | +46 | 0 replies | |
| 6/8 | btrfs: Use shared inode lock for direct writes within EOFfs/ | +7 | 4 replies | |
| 7/8 | btrfs: Remove dio_semfs/ fs/ fs/ | +0 | 0 replies | |
| 8/8 | btrfs: Move generic_write_sync() to btrfs_buffered_write()fs/ fs/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] Rearrange inode locking
This series attempts to arrange inode locking and unlocking to be more aligned to ext4 and xfs, and makes it simpler in logic. The main goal is to have shared inode lock for direct reads and direct writes within EOF to make sure we do not race with truncate.
The advantage is that we get rid of btrfs_inode->dio_sem in the DIO path.
This patch is on top of btrfs-iomap-dio work and survived a run of xfstests.
Git: https://github.com/goldwynr/linux/tree/btrfs-inode-lock
btrfs_inode.h | 10 - ctree.h | 8 + file.c | 355 +++++++++++++++++++++++++++++++--------------------------- inode.c | 13 +- 4 files changed, 207 insertions(+), 179 deletions(-)
Signature · 1 line
Goldwyn