Skip to content

nfs: improve use of wake_up_bit and wake_up_var

NeilBrown linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11sunrpc: remove explicit barrier from rpc_make_runnable()include/linux/sunrpc/sched.h net/sunrpc/sched.c+7 -80 replies
2/11sunrpc: use clear_and_wake_up_bit() for XPRT_LOCKED.net/sunrpc/xprt.c+1 -30 replies
3/11nfs: use clear_and_wake_up_bit().fs/nfs/inode.c fs/nfs/pagelist.c+7 -110 replies
4/11nfs: combine NFS_LAYOUT_RETURN and NFS_LAYOUT_RETURN_LOCKfs/nfs/pnfs.c fs/nfs/pnfs.h+4 -122 replies
5/11nfs: use clear_and_wake_up_bit() in pnfs codefs/nfs/pnfs.c+4 -90 replies
6/11nfs: use store_release_wake_up() for clearing d_fsdatafs/nfs/dir.c+1 -30 replies
7/11sunrpc: discard rpc_wait_bit_killable()net/sunrpc/sched.c+3 -110 replies
8/11nfs: discard nfs_wait_bit_killable()fs/nfs/file.c fs/nfs/inode.c fs/nfs/internal.h +2 more+9 -250 replies
9/11nfs: add memory barrier before calling wake_up_var on cl_statefs/nfs/nfs4proc.c fs/nfs/nfs4state.c+2 -00 replies
10/11nfs: use atomic_dec_and_wake_up()fs/nfs/pagelist.c fs/nfs/write.c+2 -70 replies
11/11nfs: use wait_var_event_spinlock() to wait for nfsi->layout to change.fs/nfs/pnfs.c+9 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] nfs: improve use of wake_up_bit and wake_up_var

wake_up_bit and wake_up_var are fragile interfaces as they sometimes require a barrier before them. Recently some new interfaces were added which avoid the need for explicit barriers. If we can remove all instances of those fragile interfaces, that would be ideal.

Unforunately there is one can in NFS that does not fit the new interfaces. However most do. This series replaces most use of the old interfaces with the new, and adds various related cleanups.

Thanks,
NeilBrown