On 12/1/26 22:05, Bobby Eshleman wrote:
> On Tue, Dec 01, 2026 at 05:19:31PM +0100, Michal Luczaj wrote:
>> Are you sure a lockless (sk_lock-wise) reset is the right approach? I was
>> hoping we could "reuse" vsock_g2h_reset_unreachable() from v7 to finally
>> fix all those lockless transport resets. With this version, instead, we're
>> introducing more lockless socket state writes.
>>
>> thanks,
>> Michal
>
> I definitely agree with that goal. But since the lockless resets are a
> broader vsock issue (virtio_vsock_reset_sock(),
> vhost_vsock_reset_orphans(), vmci_transport_handle_detach()), I'd like
> to treat them as pre-existing for this series and fix socket state
> handling across vsock in follow-up patches.
>
> Long term I agree with using lock_sock(), but in this series AFAICT it
> mostly just prevents an inconsistent state that doesn't affect the user
> much (mid-sweep RX RST resulting in TCP_CLOSING instead of TCP_CLOSE, w/
> ECONNRESET). I'm just not sure I see a big enough win to justify the
> extra complexity of iterator functions, the extra mutex, etc...
> (additional ~75 lines of code) for this series in particular.
Ah, ok. I get your point. Let me know if you'll be following up on this
locklessness or I should give it a try. I just hope my questions were not
taken as an attempt to put more work on you.
Thanks,
Michal