From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BBD2C43217 for ; Tue, 12 Apr 2022 23:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbiDLX2h (ORCPT ); Tue, 12 Apr 2022 19:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbiDLX0r (ORCPT ); Tue, 12 Apr 2022 19:26:47 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57FAE7EB25 for ; Tue, 12 Apr 2022 15:37:10 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id o5so142937pjr.0 for ; Tue, 12 Apr 2022 15:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuRv7uDbkpVhklmScF34vPeD2ZOzfnANcG66j+oNSPE=; b=JU8KkxGPUIl6rMg9i5pSiF0wTKbehcPV51prsiwNYEssDUImoaU+LfUAQez65OxD4+ 8QVvMNOMeAzrJsYr2YN3JVYehYIxTxMu+gnxDjupdhs34eiwJ4iAWZjZ/AjJdkZrHMLv xZlUwie9zQebilmpqvE5qgdifpiMwLm5YpN6gBmhXm5lt/5yUlVakyfPoZgyKUByw8k/ lY+5xAAFqbuYTHC1JfaxHOWxm5LSw/nMBShMjpM3OahVwT0jhxxJ475qbm1sGAGR3eqI ARQhH/x0A+nXeZVAVhe/j0dQxePBWXkjmIZipSY6HrYjsg2Yk4Ar22MlWkRy9UKTCFRi 41fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuRv7uDbkpVhklmScF34vPeD2ZOzfnANcG66j+oNSPE=; b=5nMcc+2/BYqLHk9wxV80QlkBp8HuM3mWCyFM9mKFL/DbRvvXGorwcGuMg59Lper9Ii 1UBwvfh0Parsg/41lVwi5MsaxtSty1NzARS5RhMORZCi30kYr2ONmxNXzp9mLk/M0tj/ Nf1yTGyzYNcqVTbG/AIbkztFDq4d0+2xHbdu9Xp1HTAWoc20LTVl9J+I18r/tizQEzhC vHHdOojdw0CitzlCY6APc4kDQGK4WzmSXlUBHH+N3q3Zrp57+BevAFBgWjcP5W3pFczr UZpq80laRVLEoWFz4kiXZ3BAqZcKhFXm6BQWHNDMLnGiVP+5W2DxK9TQ04o0ZYWhdwLF 8pGw== X-Gm-Message-State: AOAM530aLfJSf/d6zXVxB635f7v4QfXRyjwHtbszFjy+XmFNLUPzR2Lm NWi+BypdUYl89jJVn0L+9sN2Dd1ircK2BFzb X-Google-Smtp-Source: ABdhPJzF6EfStHyWq6lwPomr7nPI2CCnuI9sa4NDCtd82YZPKmYOzGxVizbwiVMbcERpO0dJTF+0ww== X-Received: by 2002:a05:6a00:1c5c:b0:505:7469:134a with SMTP id s28-20020a056a001c5c00b005057469134amr6359655pfw.16.1649795175498; Tue, 12 Apr 2022 13:26:15 -0700 (PDT) Received: from localhost.localdomain ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id p12-20020a63ab0c000000b00381f7577a5csm3609084pgf.17.2022.04.12.13.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 13:26:14 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCHSET 0/4] Add support for no-lock sockets Date: Tue, 12 Apr 2022 14:26:09 -0600 Message-Id: <20220412202613.234896-1-axboe@kernel.dk> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi, If we accept a connection directly, eg without installing a file descriptor for it, or if we use IORING_OP_SOCKET in direct mode, then we have a socket for recv/send that we can fully serialize access to. With that in mind, we can feasibly skip locking on the socket for TCP in that case. Some of the testing I've done has shown as much as 15% of overhead in the lock_sock/release_sock part, with this change then we see none. Comments welcome! -- Jens Axboe