Commit 118a571
Mike Marciniszyn
Fix rdmacm race
cm_open_server() does the synchronization send_mesg() prior
to doing the listen. This sets up a race where the client can
initiate a connection prior to having the listen having been done.
Fix by moving the send_msg() call until after the rdma_listen().
Change-Id: I1d271c7d25801749a2ed138fadbf97efbbe51efd
Reviewed-by: Estela, Henry R <henry.r.estela@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>1 parent 83bc16e commit 118a571
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1874 | 1874 | | |
1875 | 1875 | | |
1876 | 1876 | | |
1877 | | - | |
1878 | 1877 | | |
1879 | 1878 | | |
1880 | 1879 | | |
| 1880 | + | |
| 1881 | + | |
1881 | 1882 | | |
1882 | 1883 | | |
1883 | 1884 | | |
| |||
0 commit comments