Skip to content

Remove most users of semaphores from XFS

Dave Chinner linux-xfs lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/26 patches 0 repliesNew
  2. v1 posting 1/26 patches 6 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/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 -440 replies
2/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 -70 replies
3/6Extend completions to provide XFS object flush requirementsinclude/linux/completion.h+45 -00 replies
4/6Replace inode flush semaphore with a completionfs/xfs/xfs_iget.c fs/xfs/xfs_inode.c fs/xfs/xfs_inode.h +1 more+39 -400 replies
5/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 +1 more+38 -410 replies
6/6Remove the sema_t from XFS.fs/xfs/linux-2.6/sema.h fs/xfs/linux-2.6/xfs_linux.h+1 -530 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RESEND, 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.

Version 2:
o remove "flush" based API and just add the minimum necessary extensions to allow counting completions to do what is needed by XFS.
o change XFS patches to make use of new API
o clean up the XFS APIs using the new completion API a little.