Commit 935fee5
nfsd: use new wake_up_var interfaces.
The wake_up_var interface is fragile as barriers are sometimes needed.
There are now new interfaces so that most wake-ups can use an interface
that is guaranteed to have all barriers needed.
This patch changes the wake up on cl_cb_inflight to use
atomic_dec_and_wake_up().
It also changes the wake up on rp_locked to use store_release_wake_up().
This involves changing rp_locked from atomic_t to int.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 19d97ac commit 935fee5
3 files changed
+8
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | | - | |
1040 | | - | |
| 1039 | + | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | 1042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4739 | 4739 | | |
4740 | 4740 | | |
4741 | 4741 | | |
4742 | | - | |
| 4742 | + | |
4743 | 4743 | | |
4744 | 4744 | | |
4745 | 4745 | | |
4746 | 4746 | | |
4747 | 4747 | | |
4748 | 4748 | | |
4749 | 4749 | | |
4750 | | - | |
4751 | | - | |
4752 | | - | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
4753 | 4753 | | |
4754 | 4754 | | |
4755 | 4755 | | |
| |||
4762 | 4762 | | |
4763 | 4763 | | |
4764 | 4764 | | |
4765 | | - | |
4766 | | - | |
4767 | | - | |
| 4765 | + | |
4768 | 4766 | | |
4769 | 4767 | | |
4770 | 4768 | | |
| |||
5069 | 5067 | | |
5070 | 5068 | | |
5071 | 5069 | | |
5072 | | - | |
5073 | | - | |
5074 | | - | |
| 5070 | + | |
5075 | 5071 | | |
5076 | 5072 | | |
5077 | 5073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
0 commit comments