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 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BE7DC2BB86 for ; Sat, 11 Apr 2020 23:43:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08C58206E9 for ; Sat, 11 Apr 2020 23:43:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Kf3XC0ka" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbgDKXGP (ORCPT ); Sat, 11 Apr 2020 19:06:15 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38715 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728323AbgDKXGP (ORCPT ); Sat, 11 Apr 2020 19:06:15 -0400 Received: by mail-wr1-f65.google.com with SMTP id k11so5670159wrp.5; Sat, 11 Apr 2020 16:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PaGtkGJZGIax0HkhiC3JEbE5dhQwfZdRNpvR3UC345s=; b=Kf3XC0kaXm39dEFLi0s5a1fVAl5PKVNz19sCnvh6ThyBEMMZY8yzzIL+ZXVVGzxdJN 0UF6Nn59j1BlezcqqZNALN6RpYlXqkkiJc8k+CSUIMCuwlLZZU6UfM9Ky/w8NWEIXOHK e++8kjEwQcwUFFvVbUl5HLubymEDZAhGQfxIkcBESHmp5iAaJx5e/Sr1jiAqvEctrbcu koGbEhjb0BU7K6BUkFf6yDzzKFbcBwyMf1HXtJUkxyLHfh1/VR5VYAAsnTklpqVfUzuV UpeZfH/qkr4dfc7v+xy/UqC08WnZqxcDWV2Z59SKmPkoSe5etSy58V9W+MWxAl+JAdKX YJMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PaGtkGJZGIax0HkhiC3JEbE5dhQwfZdRNpvR3UC345s=; b=ErWN7wGNV6+hmvrkR2jemrgZl2VI7zjI8atlKywRyjcqINRY9KdITnLFzNmPgok6KP Ri9vyHnNTWj1Yl8K0FS5nzmOuNZqkLCpTm+ffRoXp22cjbiIo5c2HsBTAMJvAwHsJ+55 3oRVksnOuLqiKQABqYl3r5jB3gljHyInrU6mvb7jF8h1CxCKynE3Pyo6k1souydR4JTu VnU0nZ+v0V1oGVdm7sGixfnxUnhn7DQJeHOBxUR5MwNVe48Q+jXs53LwgT8YrYj1V6tF gjJKbKqO4iNKgtSOgEq7x/znbrDwOOROHxdOUUJlYoSvMmWgnPzb6wD7YETw3820D4p6 P05A== X-Gm-Message-State: AGi0PuYU6pQVm1Bhs76fDmeQkhomt7ogKYDDdXPLWo+OTG3iiQqliiD9 wmEQ9B9ahq/MSAKZEDsRZrM= X-Google-Smtp-Source: APiQypJWTgNjc4ZCznDIDupY5H4O2bVnW5vSZegtDGOtlGdh0Uj2U1dnSE0Stcy/Se8p+s0pSBfkqw== X-Received: by 2002:a05:6000:108f:: with SMTP id y15mr12207690wrw.423.1586646374167; Sat, 11 Apr 2020 16:06:14 -0700 (PDT) Received: from localhost.localdomain ([109.126.129.227]) by smtp.gmail.com with ESMTPSA id k133sm8992741wma.0.2020.04.11.16.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2020 16:06:13 -0700 (PDT) From: Pavel Begunkov To: Jens Axboe , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] submission path refactoring pt.2 Date: Sun, 12 Apr 2020 02:05:00 +0300 Message-Id: X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org The 2nd and last part of submission path refactoring. This moves request initialisation bits into io_init_req(), doing better job logically segmenting the code. Keeping negative diffstat as a bonus. Pavel Begunkov (5): io_uring: remove obsolete @mm_fault io_uring: track mm through current->mm io_uring: DRY early submission req fail code io_uring: keep all sqe->flags in req->flags io_uring: move all request init code in one place fs/io_uring.c | 196 +++++++++++++++++++++++--------------------------- 1 file changed, 90 insertions(+), 106 deletions(-) -- 2.24.0