Skip to content

Remove most users of semaphores from XFS.

Dave Chinner linux-xfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Extend completions to provide XFS object flush requirementsinclude/linux/completion.h+65 -017 replies
2/6Replace inode flush semaphore with a completionfs/xfs/xfs_iget.c fs/xfs/xfs_inode.c fs/xfs/xfs_inode.h +1 more+18 -212 replies
3/6Replace dquot flush semaphore with a completionfs/xfs/quota/xfs_dquot.c fs/xfs/quota/xfs_dquot.h fs/xfs/quota/xfs_dquot_item.c+21 -260 replies
4/6Replace the XFS buf iodone semaphore with a completionfs/xfs/linux-2.6/xfs_buf.c fs/xfs/linux-2.6/xfs_buf.h fs/xfs/xfs_buf_item.c +1 more+7 -71 reply
5/6Remove the sema_t from XFS.fs/xfs/linux-2.6/sema.h fs/xfs/linux-2.6/xfs_linux.h+1 -530 replies
6/6Clean up stale references to semaphoresfs/xfs/linux-2.6/xfs_vnode.c fs/xfs/xfs_log.c fs/xfs/xfs_log_priv.h+41 -441 reply

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] Remove most users of semaphores from XFS.

This series aims to convert all but one of the remaining users of semaphores in the XFS code to use completions. Two of these semaphores don't quite match to completion semantics, but a small amount of additional code on top of the completions fixes this problem. I'm open to suggestions on different/better ways to implement this.

The patch series does not touch the b_lock semaphore in the xfs_buf_t. At this point I'm not sure what we want to do with that semaphore so I've ignored that for now. Also, this lock uses linux primitives, not the xfs sema_t primitives so it doesn't need changing to allow me to remove the sema_t.