Re: [RFC PATCH v8 19/19] af_vsock: serialize writes to shared socket

2021-04-14 Thread Arseny Krasnov
On 13.04.2021 15:47, Arseny Krasnov wrote: > This add logic, that serializes write access to single socket > by multiple threads. It is implemented be adding field with TID > of current writer. When writer tries to send something, it checks > that field is -1(free), else it sleep in the same way

[RFC PATCH v8 19/19] af_vsock: serialize writes to shared socket

2021-04-13 Thread Arseny Krasnov
This add logic, that serializes write access to single socket by multiple threads. It is implemented be adding field with TID of current writer. When writer tries to send something, it checks that field is -1(free), else it sleep in the same way as waiting for free space at peers' side. This imple