diff options
author | Tung Nguyen <[email protected]> | 2019-02-19 11:20:47 +0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-02-21 13:58:05 -0800 |
commit | 223b7329ec6a0dae1b7f7db7b770e93f4a069ef9 (patch) | |
tree | d846113e935508125817d023310a67eead06051e /lib/mpi/generic_mpih-rshift.c | |
parent | 3c963a3306eada999be5ebf4f293dfa3d3945487 (diff) |
tipc: improve function tipc_wait_for_cond()
Commit 844cf763fba6 ("tipc: make macro tipc_wait_for_cond() smp safe")
replaced finish_wait() with remove_wait_queue() but still used
prepare_to_wait(). This causes unnecessary conditional
checking before adding to wait queue in prepare_to_wait().
This commit replaces prepare_to_wait() with add_wait_queue()
as the pair function with remove_wait_queue().
Acked-by: Ying Xue <[email protected]>
Acked-by: Jon Maloy <[email protected]>
Signed-off-by: Tung Nguyen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/generic_mpih-rshift.c')
0 files changed, 0 insertions, 0 deletions