Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4960543pxb; Tue, 28 Sep 2021 07:45:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/3AY0sQ7GxRxgA33slJfNaClAadAKlo0bYnD5UPcUrU5p6bdS6n1U8YLS7VeUs7XiaGAX X-Received: by 2002:a17:906:38db:: with SMTP id r27mr7140881ejd.338.1632840342848; Tue, 28 Sep 2021 07:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632840342; cv=none; d=google.com; s=arc-20160816; b=JR9SkD8yenyQSem0rXyaDONq46mzNx6Xs+miuHXeGgvaev3reNiVfHSPEVnyQ4+fTt u7UnPjxLmylgBaXd/o/MyCAYFOAaKCAaI4ibZIdzSx5iDS8oApUYmOR/2i+P4ydqv0/H X9VtCjP95XaXGV/pyS9pMsDd5Cv1n8jzThUpsjZlikVu0bmGeVqnDVbt/S1oofjKN4CX eVnUIQZS8wHWmGBTIjNLY1Cz7/wr41XhtIm71W6Euj1niY0EKIHcf+XjCmY0lrddvB2f JZs611ZvGM474mVuO/niJKnaok6ttrbExLBcO0bCqdv0c2xtkJeQuc9dGsK3CHzPDhLf Eksw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=1ZhaZG/tQlxzocEQfHY1+FVhcMM4RpIdjkL8eV4PXdU=; b=JN1HqT+rkMqJTtocK0CL3B0p/E7NNdzphqzrzJzIDGXbohU2w4OVxQ87+KwjvxkRpz IPH4n3PEbWAuyIsc9Fblr2jhy/9pQtqXK4vdm2HiFuLVk8QDr2yImXv/6o/0UckvGLAL b35wT7i7JLbTzx2PiRq9BpZ+/WBUioZ5OTIFVMBP+5y/0womd1iiXQrEuaUIs2jLWQCv g/iMFr6vuX7M665dDcjnVHk+aQ16KJ5zlVVo/8jW2Yhh1tHCABVCKU3TthGIWjPxe8DE 7gMHXCbwQjm9CvEmR8OzdtGp4gCWQzRRIdl4dULgLgxFija91mOmWje2E9rbeiKAuBTo Kwlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=EaaYZoLQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si2414844edc.409.2021.09.28.07.45.18; Tue, 28 Sep 2021 07:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=EaaYZoLQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241317AbhI1Omu (ORCPT + 99 others); Tue, 28 Sep 2021 10:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241270AbhI1Omt (ORCPT ); Tue, 28 Sep 2021 10:42:49 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703C4C06161C for ; Tue, 28 Sep 2021 07:41:10 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id r75so27680899iod.7 for ; Tue, 28 Sep 2021 07:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1ZhaZG/tQlxzocEQfHY1+FVhcMM4RpIdjkL8eV4PXdU=; b=EaaYZoLQyJe7lvJ2ke7VRkgD6vuBZuvRMzI/kJLnPozn8pxop5b/6uoLDitG3KpJBJ vVxcIFJNQ4sbxvuv+djjfhyGk6yYoBm7LPKgkxxuNRvAbbZtpFWkK1/bjYd9xgDY4u2i xu0THGW7dpad+h27yHcQGfBvgxrHy3peFhgPx6oKDYV3Zn6ag83EIzJCgSB4vWvEjtNP Wk4omfWxlvjbwvoWDu+w1w8qvTo1CFAYzq+iwellg7sll8fm10PtJ+5/S+xv64b0mNmL WR21XV2jLhsOynlPRI4/USfxDlwfJAPD8GuE9OgECejqMc97A18Uy6LGX7ccS6pTAtGK hY0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1ZhaZG/tQlxzocEQfHY1+FVhcMM4RpIdjkL8eV4PXdU=; b=aYxCb0Relp7+hri+GUY8bKkbCwPssg3E1AsVNWL7padq2/HtuEB6CKwMj7wNMebTnA ZG7mGrLkjkpbT+s3ogVKOLojdgM//CLf7pM1E/NJjwS7ppZD1qy428DM3xGTsAKFE0at qdcglOe+k70bEIcv4yME4qu/3b6XWDdeeSpS1nDKGJ7XeCxkOI0HjKv9X4e7jmK9eHBZ tjjEot3RihsaJy0R53OrbsdI0n9bKhsk1xX6qUlHGvCCM0W4FPRfU64S3bOLS9zFWgQo ulUvjXsRoQCgubXuqm6eeJXq60CX98EOJXMDm0MQtzt7FtjJYj+Pki7GoJ2nsXsivFjK Uvmg== X-Gm-Message-State: AOAM530aA8N9Q95OrXll5aJoDdt8Bq3lKIEHx5lMoiMKc5JUo/nJ2Kkm Z9AiIHLpVCc0EvuuAOaw7YP+4w== X-Received: by 2002:a02:5d45:: with SMTP id w66mr4952789jaa.82.1632840069746; Tue, 28 Sep 2021 07:41:09 -0700 (PDT) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id 67sm10855624iou.4.2021.09.28.07.41.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 07:41:09 -0700 (PDT) Subject: Re: sched: Remove pointless preemption disable in sched_submit_work() To: Thomas Gleixner , LKML Cc: Peter Zijlstra , Ingo Molnar , Peter Oskolkov , Tejun Heo References: <87sfxoai2l.ffs@tglx> From: Jens Axboe Message-ID: <87d7b153-11a6-2f47-a5ed-abe10a294df3@kernel.dk> Date: Tue, 28 Sep 2021 08:41:08 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87sfxoai2l.ffs@tglx> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/28/21 8:30 AM, Thomas Gleixner wrote: > Neither wq_worker_sleeping() nor io_wq_worker_sleeping() require to be invoked > with preemption disabled: > > - The worker flag checks operations only need to be serialized against > the worker thread itself. > > - The accounting and worker pool operations are serialized with locks. > > which means that disabling preemption has neither a reason nor a > value. Remove it. Reviewed-by: Jens Axboe -- Jens Axboe