Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1763585ybl; Thu, 19 Dec 2019 02:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyaykPyP7TQu/BLmwDMbDrTBjDUMRPuTDvmlbJ2PHnuei2jL7Vvbpqh9jyflnc/7/n/zOFt X-Received: by 2002:a9d:6d06:: with SMTP id o6mr8144220otp.239.1576751778362; Thu, 19 Dec 2019 02:36:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576751778; cv=pass; d=google.com; s=arc-20160816; b=ANDCKz1shXXMaIpTM7pP+d4Cjyzac8SDnZcqz6UkHZDGo0vUsnyzj3UD/UGqrTJNf7 jb0m0ZKvfCXdF/EazhLzXsX4sDHao9qeBaK6N4ilDcRx8DrnL8E99hvT1ntgXN+aodwW Do283DTGGU9cLj9FHovvHk1vWu4jCb+eCa+Tzj+89T9R2Yq9vv+2/hQBdYfKVuDLDTsO ZMm8iCK6ry0DhwdWEeH0jxMep1uO1KZQEZ+IiDllo8lyphR6NvQsEMtPkM+Tejr86sLq YsJpuRCGeq5w2tUan6u8DRv3bMCrOZVSn23gBSZDMt7UfaEznD4gyjtOdm9ZJwbnEoxu qs5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=JcwfFu1mR4xBLsmZ0mx4t5sLfk53PAGoZYfAL4tpybk=; b=RW5JC7RSdOTVNrushObbgq9dJFdeL5KbLe5yc/KzDB53ydoyH3WOWobxqx+JU9GfPR eoE7umwEeo8/IA0kkvfLmFANgBRl1kROlD0ORsOSTUULq5gKa0g+moGpcKw3YkDc5yYj OGrtGlQIii9iIPHGt4hErTy4e6Wmc+/y7FP1jb+KchHU7ML75ygj7DWDZqTaqFW00rAr sJPxaK2RUjUiXC+KhPfh6sM7q4Up+rBBFOAfzwMcV90YwJVUoSwhwR+tvpsv9uxB+hHn nCTayfAwghnL4ixir5v7iIs8mZmwsQHekgm/ZgLHbwnX3sbZnKb/SWat5/D1rV1OFAR3 WXuA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b="tTyR/Z5N"; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si3307945oti.74.2019.12.19.02.36.06; Thu, 19 Dec 2019 02:36:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b="tTyR/Z5N"; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfLSKgE (ORCPT + 99 others); Thu, 19 Dec 2019 05:36:04 -0500 Received: from mail-eopbgr10121.outbound.protection.outlook.com ([40.107.1.121]:12257 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726622AbfLSKgD (ORCPT ); Thu, 19 Dec 2019 05:36:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EQlC8ehHRYc9FygN1dumIfrL7q+3E6G2avKRPhrvs4JpYiVqD8cxGHlZ9DuFeiVLsDVr+7leUuYSh4LfztqUCBodrNTR4DdCMvdK1d+bLCiClGZw6q+AGox4IWHQ0lIu9K7Ax3fxcPGz8BXiPCAVF3r97zT/N5/cx1xWy5vVWfQDdB5lcSqeqdDbYZq4D/BKzNwyz9yEqRRdM18gXwShcAUHnOO8tmYaHm5B5BQrEYEwVNYigCOoPtBpvAD4pEmOXr6EXpZP+jsYTuZqTk45bd1kmQy2ztrOr01h0+EoZHSIKyXMO5BB2DaKGLLZuPwF4BmCBMKNBdKA+0/hCXWycA== 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=JcwfFu1mR4xBLsmZ0mx4t5sLfk53PAGoZYfAL4tpybk=; b=KZZV/kE10keJnTYHG7IodzCrhZh5Si/n2A70C9stKtmVkcJS2EXqybxIWUTvbCLzH3Bo54j530ZWV23ndogE+IsPfHFtWXm5FazJ1/fWysU2oJybon9R0ZH831kII7W6CHQDBuj66EDw+IPRHdAmZBUsZPGK3bVFnj2X+azJaiYAhAAvbdmk1uAxeVcWt6eMIC5tx4h79noKTP8kDxpsr6ajpy74On7rY+2oB5JzVHSACPqK4Qz9AFcEjSlZRz3/GSJ48/d7VAJmrz75q2bAQaIB7NF3FHS4pfupj0xaTu1aV1/dHHAoA2aHi+9MlQOuyMo+GHiCKY8+mTJB6D7ZbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JcwfFu1mR4xBLsmZ0mx4t5sLfk53PAGoZYfAL4tpybk=; b=tTyR/Z5NNRnNeDyaQ0rCT0PoLM0as721x3mUZEDG+apjNd9BwRN2UvwjXytwj6lle0JH6FmkhWJqDxkgRghmt7hC7Jan6tC2EWzTxWJBvmuK9OmjEldbKw5V2qN181iQ6WImKnFugo7emdRHaiK1gBdQriVQu8m/siJPyjmjZ78= Received: from AM0PR08MB5332.eurprd08.prod.outlook.com (52.132.212.72) by AM0PR08MB4386.eurprd08.prod.outlook.com (20.179.32.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.15; Thu, 19 Dec 2019 10:35:57 +0000 Received: from AM0PR08MB5332.eurprd08.prod.outlook.com ([fe80::6555:db6a:995c:ac0f]) by AM0PR08MB5332.eurprd08.prod.outlook.com ([fe80::6555:db6a:995c:ac0f%3]) with mapi id 15.20.2559.012; Thu, 19 Dec 2019 10:35:57 +0000 From: Pavel Tikhomirov To: Dave Chinner , Shakeel Butt CC: Andrey Ryabinin , Andrew Morton , LKML , Cgroups , Linux MM , Johannes Weiner , Michal Hocko , Vladimir Davydov , Roman Gushchin , Chris Down , Yang Shi , Tejun Heo , Thomas Gleixner , "Kirill A . Shutemov" , Konstantin Khorenko , Kirill Tkhai , Trond Myklebust , Anna Schumaker , "J. Bruce Fields" , Chuck Lever , "linux-nfs@vger.kernel.org" , Alexander Viro , linux-fsdevel Subject: Re: [PATCH] mm: fix hanging shrinker management on long do_shrink_slab Thread-Topic: [PATCH] mm: fix hanging shrinker management on long do_shrink_slab Thread-Index: AQHVpv50iUgQuqhqn0Cemimr1eLSWKenDy+AgAVXUoCAAPvjgIAFP6sAgA7AIgA= Date: Thu, 19 Dec 2019 10:35:57 +0000 Message-ID: References: <20191129214541.3110-1-ptikhomirov@virtuozzo.com> <4e2d959a-0b0e-30aa-59b4-8e37728e9793@virtuozzo.com> <20191206020953.GS2695@dread.disaster.area> <20191210012036.GB19213@dread.disaster.area> In-Reply-To: <20191210012036.GB19213@dread.disaster.area> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0301CA0020.eurprd03.prod.outlook.com (2603:10a6:3:76::30) To AM0PR08MB5332.eurprd08.prod.outlook.com (2603:10a6:208:17e::8) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ptikhomirov@virtuozzo.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [185.231.240.5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6f0104b1-e536-4edc-9943-08d7846f3bd7 x-ms-traffictypediagnostic: AM0PR08MB4386: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0256C18696 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(346002)(136003)(39830400003)(376002)(396003)(199004)(189003)(31686004)(26005)(8936002)(2616005)(52116002)(81166006)(36756003)(186003)(81156014)(6506007)(53546011)(66556008)(64756008)(66446008)(66946007)(7416002)(6512007)(6486002)(66476007)(86362001)(31696002)(4326008)(71200400001)(8676002)(316002)(110136005)(54906003)(478600001)(2906002)(5660300002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM0PR08MB4386;H:AM0PR08MB5332.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qraSADgxz65wpYed32sOcKtM28fFC2FO960+Gxy2YYzdxcNH/4eLkmrMVevi0rIgJfDWl109SF1U7VYzRw58xe0QbTs9UynAuCDu2P7mkAhiFShFwTw/Ui7JO9ah6Esde8GMmRqeZM24SPe3DVJlgu2zoJwWmKmXxp0JavxFJJmwoqlWPBtwz6N+zEwLZqsic+Zl8zt+Z9qbhWD0VrVQtob9FTqDE1QKFrke2rrzoCalrtdOEU/zS2GGlz2krmC1d0udYGxGaaUHkE7mije78TSNQyiB+4qnrh4RA/50GDWSBR0b0pQ9hoc08EBG14N6RGpBx6LDs3+8L/TeqI/4o4IAuSqNJlb02+uVrU2xRfAaoCc8XRjO84mWC8I5AOqU95i7pBHP5f8u3VrHpHAaOi1HUMHpFAKeDXtKmRs6+5CaSJbRREQnO60eKVT30Cfl Content-Type: text/plain; charset="utf-8" Content-ID: <4006B78015E8C64783ABBF308E03CE78@eurprd08.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f0104b1-e536-4edc-9943-08d7846f3bd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2019 10:35:57.7431 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3gdG7j0r/bttLBc0YdltsTe30AqHhR0v1twNVFLnfGpssomJlXo9+Shid3cPS9uJZoQLi1mitJyxbycG5vA2btQcw+VF221Gy0prGhe52/I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4386 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gMTIvMTAvMTkgNDoyMCBBTSwgRGF2ZSBDaGlubmVyIHdyb3RlOg0KPiBPbiBGcmksIERlYyAw NiwgMjAxOSBhdCAwOToxMToyNUFNIC0wODAwLCBTaGFrZWVsIEJ1dHQgd3JvdGU6DQo+PiBPbiBU aHUsIERlYyA1LCAyMDE5IGF0IDY6MTAgUE0gRGF2ZSBDaGlubmVyIDxkYXZpZEBmcm9tb3JiaXQu Y29tPiB3cm90Z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