Commit 48766a5
tipc: improve function tipc_wait_for_rcvmsg()
This commit replaces schedule_timeout() with wait_woken()
in function tipc_wait_for_rcvmsg(). wait_woken() uses
memory barriers in its implementation to avoid potential
race condition when putting a process into sleeping state
and then waking it up.
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 223b732 commit 48766a5
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
1680 | | - | |
| 1680 | + | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | | - | |
1689 | 1688 | | |
1690 | 1689 | | |
1691 | 1690 | | |
1692 | 1691 | | |
1693 | 1692 | | |
| 1693 | + | |
1694 | 1694 | | |
1695 | | - | |
| 1695 | + | |
| 1696 | + | |
1696 | 1697 | | |
| 1698 | + | |
1697 | 1699 | | |
1698 | 1700 | | |
1699 | 1701 | | |
| |||
1709 | 1711 | | |
1710 | 1712 | | |
1711 | 1713 | | |
1712 | | - | |
1713 | 1714 | | |
1714 | 1715 | | |
1715 | 1716 | | |
| |||
0 commit comments