Re: [PATCH net v2] hvsock: fix epollout hang from race condition

2019-06-18 Thread David Miller
From: Sunil Muthuswamy Date: Mon, 17 Jun 2019 19:26:25 + > Currently, hvsock can enter into a state where epoll_wait on EPOLLOUT will > not return even when the hvsock socket is writable, under some race > condition. This can happen under the following sequence: ... > Now, the EPOLLOUT will n

[PATCH net v2] hvsock: fix epollout hang from race condition

2019-06-17 Thread Sunil Muthuswamy
Currently, hvsock can enter into a state where epoll_wait on EPOLLOUT will not return even when the hvsock socket is writable, under some race condition. This can happen under the following sequence: - fd = socket(hvsocket) - fd_out = dup(fd) - fd_in = dup(fd) - start a writer thread that writes da