Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240099pxf; Wed, 10 Mar 2021 05:26:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+CHcy6SQCZAfQcRx2mzoTBJi2SeXujVV0Yqlunuf5NBZ/yWu2W+/2M7L8B563HHwQSMho X-Received: by 2002:a17:906:260a:: with SMTP id h10mr3695906ejc.392.1615382761497; Wed, 10 Mar 2021 05:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382761; cv=none; d=google.com; s=arc-20160816; b=1GtFu6y4uBR1tejWI+S6NbboYqc+ezlIIvnyG3sz4HHjQsymh0g9zWal/GVybT0m4J 4CxM46tOmsCNRZzZ88c1U95I7z05G1PkJPOs4rzMq9wt+zXqnfLcNqjq3dGnIE6Y9rYO 8u6WUAP1f//2RTkMSX+iF34Eq1DCme5QWz/p+PDf7yFyY2h1eIJZp/kLlbZoCPZM1T4K pa7I+E98h5Rni/xr2qhkBNlwA02d7dDuB4NhEaXweCMScIw9gwKAP16xYSZ6/B85SFir DZbci222kPiJWTpNSmTl0Sg8u7iLGhRN2oTHTMJLvYs9Whmq69xEb2BILPMwQFBpUIo8 CNfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5z5sI8uU0CbFmK59nYS8kGfegqP2A3eFc0i5QmG2Ua8=; b=CzuVJcjG5H1dAuAYGburOfnns0/i4BGBnLRvINdVcZqObH6lwg7ROQtma6BTxqY69G a11pBWJ3DoYFWCSVYiMdDiWzdn02bShpbVE+WfeFYIxnoGUqe/II7ble6gMGkOv4+fWk q44M3k9Jdj1287dnBTjdwGIrA9kEAgVHV6g8hmN48sl77/5gnhrgSFHbg4aZPaxVV3Oj mZwbEgvYkiWRGsdeKk8vTXv1z3CWOpB3oO+jNHemCER2DxbtIYJx+p1+inMcWD6fyDC0 Qrbqo//s44psNupDTzzFjtnpePWh9iTUdOtagaHODGRqecKu/j9Vn/kXEbEHGnOFcpJg n11g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q9a8nHj4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs9si10801576edb.575.2021.03.10.05.25.37; Wed, 10 Mar 2021 05:26:01 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=q9a8nHj4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbhCJNYr (ORCPT + 99 others); Wed, 10 Mar 2021 08:24:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:45392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232755AbhCJNYJ (ORCPT ); Wed, 10 Mar 2021 08:24:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC71D64FE0; Wed, 10 Mar 2021 13:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382648; bh=FFVGLhhFfNqFSUrAdDb6I8fObhO2P1oynEj06Nyc6r4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q9a8nHj4KYdyppHIus/sOlNu7Kv1GRU4xPYZf77idkLSx7sIE7Sz1AYJFh8bCGY1E EuYSrWpGqMN0IpYSu7fSFDH8DXiJEs2WpUow+jm7aIo4op4fqt1n/rZ2pMW/6F5Oo1 q/DnReJ4qX84y718TKJxb8SLln6gVETul6MGoIb8= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Jens Axboe , Pavel Begunkov Subject: [PATCH 5.11 08/36] io_uring/io-wq: kill off now unused IO_WQ_WORK_NO_CANCEL Date: Wed, 10 Mar 2021 14:23:21 +0100 Message-Id: <20210310132320.782520570@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Jens Axboe commit 4014d943cb62db892eb023d385a966a3fce5ee4c upstream It's no longer used as IORING_OP_CLOSE got rid for the need of flagging it as uncancelable, kill it of. Signed-off-by: Jens Axboe Signed-off-by: Pavel Begunkov Signed-off-by: Greg Kroah-Hartman --- fs/io-wq.c | 1 - fs/io-wq.h | 1 - fs/io_uring.c | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -944,7 +944,6 @@ static bool io_wq_worker_cancel(struct i */ spin_lock_irqsave(&worker->lock, flags); if (worker->cur_work && - !(worker->cur_work->flags & IO_WQ_WORK_NO_CANCEL) && match->fn(worker->cur_work, match->data)) { send_sig(SIGINT, worker->task, 1); match->nr_running++; --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -9,7 +9,6 @@ enum { IO_WQ_WORK_CANCEL = 1, IO_WQ_WORK_HASHED = 2, IO_WQ_WORK_UNBOUND = 4, - IO_WQ_WORK_NO_CANCEL = 8, IO_WQ_WORK_CONCURRENT = 16, IO_WQ_WORK_FILES = 32, --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6388,11 +6388,8 @@ static struct io_wq_work *io_wq_submit_w if (timeout) io_queue_linked_timeout(timeout); - /* if NO_CANCEL is set, we must still run the work */ - if ((work->flags & (IO_WQ_WORK_CANCEL|IO_WQ_WORK_NO_CANCEL)) == - IO_WQ_WORK_CANCEL) { + if (work->flags & IO_WQ_WORK_CANCEL) ret = -ECANCELED; - } if (!ret) { do {