Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3217861pxb; Mon, 9 Nov 2020 05:52:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQU22so2EYV5jXY+dtktwK3mUy/c47u5rWE1e1Wh5KeBwVqfuRgNVIBetM8T6ldnWL7jY+ X-Received: by 2002:a17:906:30ca:: with SMTP id b10mr15682538ejb.390.1604929947244; Mon, 09 Nov 2020 05:52:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1604929947; cv=pass; d=google.com; s=arc-20160816; b=n5TYiBK+m0qJ29gYJYbYVLtfp9TyJsKtIld3zQhn3HSZThd6NbInFxwKZUiFYseybU /eeCqJQyHTB/zIFAgVbr64pE1ft43PgDeSm7McEDVsVDpAxaWLKtQD4/1j/TwbiNEfAy 1dUMlUmparjHj7sJI0PG3XEDWa1B8z8GbSHgmI2JkNduIqaXAQ2i/KMTE4jFfwVlrMgk yN1cjFgYMMvKPto2gGaMYG7dyv7Aq614CCyjM5sH+T6cD98NdcHwXGedBqz7P1mcDe8N G7WNCXIq0AWZNGGnZOu1BlGYCc2y2vhmDiZa/sgeBOudeD5h6y5oydVsg1UUpvtMyju8 /rYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=f5R+OqaUeihmHqO6WeNPWXRrrFgcNq340wTsChhuhBs=; b=Km+dMM37cqRYanzz/Egaz8n61SuGQfsDD5oqiZaP4VO6v+qVBBUkPEnTbzGjYPVsxm dx5HHYc9vj/zSampDaqStTbFdFUZhTTDm3iSRFAkjMiXAmHAzYhUsXHa/d8T25NP93Zj uQGIQO0hTOLfyYgV+YsCMtS1IQRm0MQHJbRxfbrJ6h51ywGMv+5uHaeezTTDjmdTXXBR QfavMztLO6gv/afu800TNFMX0Co5w7uldk0E/qQWEjQugL6CFniiGfNKBzh3BSFBARcB n5IFOmAuHJVpOOySXd57q5ZE4I0K8mnp8tXABKlOkImc22AjmcL1Vn+bSU9clfMflKXK dw+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=ePUbZzts; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); 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=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si7083868eds.191.2020.11.09.05.52.04; Mon, 09 Nov 2020 05:52:27 -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=@hammerspace.com header.s=selector2 header.b=ePUbZzts; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); 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=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730354AbgKINuo (ORCPT + 99 others); Mon, 9 Nov 2020 08:50:44 -0500 Received: from mail-dm6nam12on2091.outbound.protection.outlook.com ([40.107.243.91]:14688 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727826AbgKINuo (ORCPT ); Mon, 9 Nov 2020 08:50:44 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ex5AK7W5Vaw1lLhQM0PjLcPu7co3jyagAcjlMBfs7fAAwqy2jYJ2+gpVmFncu5Tvd13D98JWEhNkH5mzjpL6g07yPZiZEaHOfukUoCaOvJlHE7agoPTWbB6WlGCbX79xbmUPjNfrBh73hxwHpLhwQW5jHtQJvjzADfFmBqHJxiXJLWtszdEQN1ZFkFJafn6oUvMIJE6kla1qgagosIlmUmzs73dNnwhS9mN5E/Exy+HwVGnivyYT56/C3UTazEQn8CrYE3ydOwWtPPx/t+BCrXquIefewct2wa7dZi8G4eThCqPGz33/RqO2TljXltvKcMaFo5wR4SsB+IYMVO0uGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f5R+OqaUeihmHqO6WeNPWXRrrFgcNq340wTsChhuhBs=; b=lcq66uJvdUa5/qeM4AYI4TL6r16e9TYkHuJgtgyc6ZDh4pT67ycg5ijQW//DktMvtlWeSXgw0mOp8zfImjXsuF1D2SoR+c+PANHOlLLuW7ngMbU5FxZR6gybOoTCHBi3j9aZ3gqCtoPi8pUYT167LSNPvAOzwWd/zkg9toeJvA79EJbefZCDG2HnhHRNiOFcHVtQAkXVrlm+iOnTuP8Su0k+WK0Mkmt7V79lst2TnXOHbYvN9lPHX/vkGWNl+s2cucIi+/CWvNTON/dwCzRLFxRS0bAmfHg5wcTNpBYffXqoBN7iMl1QEhEMxPxlFOGqVd9wbDB/rGwm5wbDzaNWIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f5R+OqaUeihmHqO6WeNPWXRrrFgcNq340wTsChhuhBs=; b=ePUbZztsXDf7DiHCJ94L9/pC8jltksEg27z8t6HmJC10/iAZwSKXojHhGrhF3NJ9vevIKD381+A6qWxf0Mh/kvBC2BjMpTg+JeSYAwlEUYj3EqE6M4zvqy3CEHqmDmzeAVyPcFlJTGcU/RjQQExLWcFLf6adjTmIz75SD3ZEgAE= Received: from MN2PR13MB3957.namprd13.prod.outlook.com (2603:10b6:208:263::11) by MN2PR13MB4088.namprd13.prod.outlook.com (2603:10b6:208:262::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.10; Mon, 9 Nov 2020 13:50:40 +0000 Received: from MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e989:f666:131a:e210]) by MN2PR13MB3957.namprd13.prod.outlook.com ([fe80::e989:f666:131a:e210%9]) with mapi id 15.20.3541.018; Mon, 9 Nov 2020 13:50:40 +0000 From: Trond Myklebust To: "peterz@infradead.org" , "neilb@suse.de" CC: "juri.lelli@redhat.com" , "mingo@redhat.com" , "jiangshanlai@gmail.com" , "tj@kernel.org" , "mhocko@suse.com" , "linux-kernel@vger.kernel.org" , "vincent.guittot@linaro.org" Subject: Re: [PATCH rfc] workqueue: honour cond_resched() more effectively. Thread-Topic: [PATCH rfc] workqueue: honour cond_resched() more effectively. Thread-Index: AQHWtkPENGqm3GxOSkGvPzbAsELwtqm/cEoAgABhygA= Date: Mon, 9 Nov 2020 13:50:40 +0000 Message-ID: References: <87v9efp7cs.fsf@notabene.neil.brown.name> <20201109080038.GY2594@hirez.programming.kicks-ass.net> In-Reply-To: <20201109080038.GY2594@hirez.programming.kicks-ass.net> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=none action=none header.from=hammerspace.com; x-originating-ip: [68.36.133.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 98fd60b2-99e9-439c-5205-08d884b6720c x-ms-traffictypediagnostic: MN2PR13MB4088: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vS3huW0KobJUbV/KOBJkrkcU619L2kWRuIDbleqHvYFipuywd+JhfYW3wMnLvnB2aqBkoyzUrEZ9iDFYM7c43FsNMKYAxu5b+WMJrUpwf0DoJznxkyvZLqdgFUfrikd1W86eBayZYsQ5Te7BsXD+6wcYAK//T7JQQXtYXOU9TDVWxO8VgT8EXFDF9D712dsrmjbilY0g7oAtBYjPEMPNCNu5O2qP7iA/YiSXOLGBE/DXCLVqiU+AveaKpqTOKyi9mBJ5Lj94LECQ8wgaIEpY9ta0yzNqD7QwtjLuE53jWS782wpudmHOdugML3p5rXqxqrYlwHiMMpcFkW0ZIp9tBg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR13MB3957.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(136003)(376002)(346002)(39830400003)(396003)(2616005)(64756008)(66446008)(110136005)(6512007)(6486002)(5660300002)(6506007)(26005)(2906002)(54906003)(8936002)(186003)(36756003)(91956017)(4326008)(66476007)(76116006)(8676002)(66946007)(316002)(86362001)(478600001)(71200400001)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: hmDs3mvAHxXvdXY5nhmXoM7heaThj0Tqg0KlOYhXDZ6rHWkRiReVlsmhjC0yZcWndrKW05MGvmHfNHPTKhrq/TGHPPA8KRBy2sDUg6Tvfmp8Zr0z3wdqm0oKMdfUpeEJ9h0AXr1VtJc5pOQxcn6HizAiAUb13L9ZrUZPbLCU+MBrjUKhaFlIyFanUvIfLiWjNO0pMsdaMBu0HJ8sYY7sZ+BnZSSrNGWajS2mOy4wBJFBSFUkUBGCT2ZRw+0dKivXso43L27LXPUZcRngpGJH1j0lV3lSuLkxKWHj96rUWn9zLYHpyILTIKNqB5TETD4NrSOGljLA0MgW9nqRHD+z/ySX1OupmbGPHWatwz44xC8CmFMjoBShXVcuJ4lTagLjReP4JaXXCEL5Xeu6b2pF1lmC6rpch1Pc9OaNrUJqr0W26JuyzF76vKucmQh50EeCcbjUcDYmcWQ7mGtyUES9GBZQdaVy/fZrCRgYqkYBrukRLa4s138ny7Liz1eXVVH7YL6iX5sDFqong0jdV+ZcVhTf5W75UYGIxTnehR46DHVFojgktbDvM5n/bxhqm/wKcAdqZ1989ucl66y/g6s/HHMYGS43RH3IFbLemKHoZ77CuudgsWcTPaiU48nSlp+RLJ0xPL44EFKpKmOJJZS2Bg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <4B3B2E4D1EA4C6469EE717EC4E176A4C@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR13MB3957.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98fd60b2-99e9-439c-5205-08d884b6720c X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2020 13:50:40.3736 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: z8d/ikA3sT6s5b315kBuF0wEwjjNZeTBm9WerdJ04eEgs3La8imO6R8o0i2oNfODiWKhqyiF/8xN923pLUcXSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB4088 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTExLTA5IGF0IDA5OjAwICswMTAwLCBQZXRlciBaaWpsc3RyYSB3cm90ZToN Cj4gT24gTW9uL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