From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D333227EB9 for ; Fri, 12 Jun 2026 13:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781271063; cv=none; b=bPsmUtP2e/pNMd0+mDdg+RyEHkBC2xYAij667jk0P0VIHhLHjEOhR7zOves2L77UhhXe9fgkIfDfo3pkY5QxEvlrm9iR7WIvr/Z0JuZijClVLnw0+1lkvELJox+dc1BXyVBxoyK/C1qSBijwvChC/dVJaeGUJ2H1nDfHLcKhVMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781271063; c=relaxed/simple; bh=o6C89312xo3o8VBjH1GVjeqa52tCtDyhVrUewQ/dMSU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S8Oprl58DwIPh5yuGdafLx7n7HlBY31Zyf0FhH2lCvrIA6+Cbx34dgbf0u2CkcHvGpZsFm/G3uHron4GSt7ydwKxXbY9Ai1fwLtF5tGgsfuTMEz/ZB0dZTtbheIIJ130TN1kcGqtxcNJN9M2rQpItrejBJ/YCFKEcWGhHg1yS1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=KOfZli7D; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=Y1J5eZLh; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KOfZli7D"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y1J5eZLh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781271061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o6C89312xo3o8VBjH1GVjeqa52tCtDyhVrUewQ/dMSU=; b=KOfZli7DNFOBj3HMRxgWQRYPoCVU2IQVMj9uAdT4RwZBgwABMyovkT1TBm0tytexGcYFWf 4vnOm5uh2qIv9ERai8ha03n5zM9a4nFX9/eCvxLG4xgrkuWqq9G+VUx8pfQEC3I3ns1cnt GjudmrCnzXNfozsoH34R/etI4Mgw1II= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-520-1CO4GD7gMlmii8F13xNgWQ-1; Fri, 12 Jun 2026 09:30:58 -0400 X-MC-Unique: 1CO4GD7gMlmii8F13xNgWQ-1 X-Mimecast-MFC-AGG-ID: 1CO4GD7gMlmii8F13xNgWQ_1781271058 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-490b0682d2fso9622925e9.0 for ; Fri, 12 Jun 2026 06:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1781271058; x=1781875858; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=o6C89312xo3o8VBjH1GVjeqa52tCtDyhVrUewQ/dMSU=; b=Y1J5eZLhkcW0R6f01t8p9CMFDSh45m9MYloTl0nPsOmGAGVdnacabypr/Ybqy0p8JP IT7VNRr5o/K3JP14xjUVHkyDYI/4+A8t6Iu64YwzeRfJBjoKY/fLd/uAYbvhUGzE6s3p XxU3fNk64Y7Y6XNVy1bbODHcvBRxyyOmcS3bAqN+F235otk6wiGZZjb20bJT72rTGll6 xqPdW7ld1TvpTHCnjd+RNYqN0umDtldsf+6WPZYZLk7aP4TfF8IN3b8ZJqaoDrDGaf3L tiYIiVin99H1SVN2fWvZHEr/h34q9SWpnGHlgTRyh8BsfIHMcwvIn8tISaSB87/rCS5a 7BWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781271058; x=1781875858; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o6C89312xo3o8VBjH1GVjeqa52tCtDyhVrUewQ/dMSU=; b=qc6sIcZYdJnQLn31oKhVIHQZb+cthnCRNVYfBxOw4YoXJkNC23KcotUq3pXZ1/Ufx6 lznh9N9gi7ZF02MpHlJ5OOtYi8rRiV3UrB8BjflOIweKN9m61zPCnem02LmeRyVWrdfH ZhLgpJZPolX09oMFJxXgk29dRTL40P9/TsHoIum07K/nBgGH4LSUmuK2zp2QQE41k1qE 7+jC2X7Uruyw3Okxs8vU6LbbGe+FDop8jQic5s2SnORkbiKv+U7Y5wz962M8GRnWWwzP a4LsSLhf4c3hF17nSxLTlZPbuTJ/May6bEQys5YU2yRLSEnzWqq+3A52ntSA5eAaOpcG im3A== X-Gm-Message-State: AOJu0YxIhjQ1KB7GgYwKDpVwHeSydwn2foYBBdfgQdIdukurPJ+x+Vjh ul923sbLGdQHL2sttBZpP4Ky/rxGpwZs8NSPLWWhEUDsZ7Dg/q2G+c9DKkJFqcBltBpGy2GjGy/ cBIN/3+IKdO0ykpz2zm2ANMEri4IloPj8GxoCHEyo99+hC9B8l+bOIVe3dw== X-Gm-Gg: Acq92OHhOc6j6k07eua7Evh9YlAmXft4Zjp5w3KN4sML4juUUvusp+WAmBSrQ2vtGWC DArvWeb6PPphlY8b5XQ7cmLOFd32UR35mUo0zuCZ+kfOzJ2rlqETtt781YS1iKWPHPABLZ6CCjf 32kBxOyGf2lrZYTv0BM+mqZUMlMpolIgO80+69qxhrINX4BG6u7iZt4nMjMurt8pqZ1NwdkJKZ0 /h9EyUl5F99aMYVNt4jkVyh7VqIyox27I2dcHkSLRDm68Y7QGtCQeLigm64n5f5PjWBCgqZfJiW IFnBOs5jv6Ey2Z0uBKRBA1kW0YdERI1kSmfIBPH1DLmvhgsXEqidONbcwTM+Sa5lz4fHSt6rDd+ Oo6DaNBNujkHQabIkIPGI4nRc+5Szkn6nPg9P60ShcVOoJaW4AUxod5fV3xk= X-Received: by 2002:a05:600d:6413:10b0:490:d38c:7836 with SMTP id 5b1f17b1804b1-490ec4b5a6dmr29663725e9.3.1781271057720; Fri, 12 Jun 2026 06:30:57 -0700 (PDT) X-Received: by 2002:a05:600d:6413:10b0:490:d38c:7836 with SMTP id 5b1f17b1804b1-490ec4b5a6dmr29662925e9.3.1781271057178; Fri, 12 Jun 2026 06:30:57 -0700 (PDT) Received: from leonardi-redhat ([176.206.21.116]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490ea7c0960sm60228985e9.3.2026.06.12.06.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2026 06:30:56 -0700 (PDT) Date: Fri, 12 Jun 2026 15:30:54 +0200 From: Luigi Leonardi To: Raf Dickson Cc: netdev@vger.kernel.org, virtualization@lists.linux.dev, pabeni@redhat.com, sgarzare@redhat.com, stefanha@redhat.com, bryan-bt.tan@broadcom.com, vishnu.dasa@broadcom.com, bcm-kernel-feedback-list@broadcom.com, bobbyeshleman@gmail.com, horms@kernel.org, edumazet@google.com, kuba@kernel.org Subject: Re: [PATCH net-next v3 1/4] vsock: introduce vsock_pending_to_accept() helper Message-ID: References: <20260612045216.105796-1-rafdog35@gmail.com> <20260612045216.105796-2-rafdog35@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20260612045216.105796-2-rafdog35@gmail.com> On Fri, Jun 12, 2026 at 04:52:13AM +0000, Raf Dickson wrote: >Add vsock_pending_to_accept() to move a socket directly from the >pending list to the accept queue in a single operation, avoiding >the sock_put/sock_hold dance and the sk_acceptq_removed()/ >sk_acceptq_added() pair that would otherwise be needed when >calling vsock_remove_pending() followed by vsock_enqueue_accept(). > >Use it in vmci_transport_recv_connecting_server() where a completed >handshake transitions the socket from pending to accept queue. > >Suggested-by: Stefano Garzarella >Signed-off-by: Raf Dickson Reviewed-by: Luigi Leonardi