Received: by 10.223.164.221 with SMTP id h29csp2958628wrb; Tue, 3 Oct 2017 14:10:44 -0700 (PDT) X-Received: by 10.101.65.205 with SMTP id b13mr16426941pgq.319.1507065044069; Tue, 03 Oct 2017 14:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507065044; cv=none; d=google.com; s=arc-20160816; b=eZLDlfUGBGas9ZHkujT+yUP7KoUFVR9nzUnlxxHuHMqS6H7X8kno8N5iYZRg1AvLhX kBYch2sot2rIn1q0XsCyQzMrx0it7fFsC2PjBf/YpM3ybPWHDhU1vQx3Moy0/Nk9jaEH 65pMscFRhWqua3rN1K2/oHfor7MJvz3+uIAftQm4D9n/ryDqZVBlGk5goquRztFl5Lwb VV8HABWkpM/058V3jfTpaqrz0h5tRHtRKg0DUDimOnNSgfeTiFobM2Duh7Fi5Anyz9r4 PxUZHP1+7YekH5SJtbmNXBHKKCqoF6zuRUhmj0ZlZ+Exayn+AYFtEb/Ags2DRpVtCixD yC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EYCacjroKSNzp7UxByhzwasYleRWRvhvDSD4zyqNnjA=; b=UuE8AxsdNxhpl8T+SxMvr5MSnS/rzpgcjYtjnf5zDxqjjJcKcbPvQTen/Z3rec6bB0 mUlEOQimntDF5Qh1H/x6RTSjz2kuGUXD2NXEqfa1crihG7TKsg69C5RLMzWZjg6VZHoH po6oK7x927OIw84j7i8BHC6bJxmPzJ5ewHpdPCK1Xg5cNjmtM6/M5837rD43RSMq5Q0a 5IqMuZ8dSFWBGTS1VOzW3rIpTPyyD2t2BIexfZaR3lpQJKgB12hciUWJz5cNm+ymui/f Wh82vXqSrFHvLBiPVm9f8iJpRGd/mmUrWfvZW8iu62znNRhpzP3pJuKXhSvSQNFEdUDw 18JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iL91dPfn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si1567058plc.627.2017.10.03.14.10.29; Tue, 03 Oct 2017 14:10:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=iL91dPfn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511AbdJCVJ6 (ORCPT + 99 others); Tue, 3 Oct 2017 17:09:58 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:57296 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbdJCVJ4 (ORCPT ); Tue, 3 Oct 2017 17:09:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id l68so5644456wmd.5; Tue, 03 Oct 2017 14:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EYCacjroKSNzp7UxByhzwasYleRWRvhvDSD4zyqNnjA=; b=iL91dPfnQFLK0g46CLEbfs74vmTGJZSAJ7hvmkQYPz3/DOUWciZaQRO2BuToGUB6Zd bRagggDSLF8q25IbjZSFWWqmE0lkhSxQk6IZc8xQagIbUJCRSPPa6R427xxPpkEvfRUo JeoC5D4rgG+dwIJ1Lm2/P2zcqF1JI3udDm/RGWVCa+0Gii4jfqOvqDkrSlBQM9YSKMLb Nfi260V3HNWhU9IMonuY5iruUB4Rj5WR8vNsXZcUWDZ87+1QbSUcwM4TPJptaT+JXQWF KuZkktKKi3c6xUzz8/YNsdInD9bm3Wuu0wlTDx1z0GsXimykfKZTLQr/eysoVuG3ktWE is5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EYCacjroKSNzp7UxByhzwasYleRWRvhvDSD4zyqNnjA=; b=sxofexuEAHvd89erB4erykjmAl5pbec5AXYLuPTu0Wz8bnyBFSG3wEK2jI0S+NwcQQ ROMFtj7CSp3xibL1hBvy2TPzJp+PUVKrUmiGHcLN1aGHBspv6Cyr+xgaCVvE0+rp5lZW UUd/Q+mRnJAHon3/Tu9BPmHJoymYZBYD+9QVtJ3MYufRHaPdHDZGeZ3pV8LWuJTjkr78 wlZQkLWxRdf94G/S5eWYSPoj39oiCAksbVryieSQ2Aab2KYg5w+SNwbCyHgZvMvSi7qP QGIMp2Zji+5cfjcQM2jDNXES8Zzmr1lB/dDTUHd7uccmL6VYQAm8WFbRt70WBINBBTFO EGGA== X-Gm-Message-State: AMCzsaVhGqhen4bMb9/1qFJJ5KtmRGvrO5crJ3pUQiaiV924HhyacESt /4GJCWNUYv+LUK9WzEYoM0ETNC/iYBHwUiPPGHY= X-Google-Smtp-Source: AOwi7QBMQiRKQux5TJNtWB+/xjrd02Pg9JflNoV+jO6gtB5V1jQ5VezCUCAjS5wDjxCnirg6XV9tj4U83EEKlR6a85I= X-Received: by 10.28.59.134 with SMTP id i128mr3237638wma.114.1507064994240; Tue, 03 Oct 2017 14:09:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.196.207 with HTTP; Tue, 3 Oct 2017 14:09:53 -0700 (PDT) In-Reply-To: References: <20171003185313.1017-1-mcgrof@kernel.org> <20171003185313.1017-6-mcgrof@kernel.org> <20171003201204.GA23521@amd> <20171003202121.GB23521@amd> <20171003205739.GA30569@amd> From: Shuah Khan Date: Tue, 3 Oct 2017 15:09:53 -0600 Message-ID: Subject: Re: [RFC 5/5] pm: remove kernel thread freezing To: Jiri Kosina , mchehab@s-opensource.com Cc: Pavel Machek , "Luis R. Rodriguez" , viro@zeniv.linux.org.uk, bart.vanassche@wdc.com, ming.lei@redhat.com, tytso@mit.edu, darrick.wong@oracle.com, rjw@rjwysocki.net, len.brown@intel.com, linux-fsdevel@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, todd.e.brandt@linux.intel.com, nborisov@suse.com, jack@suse.cz, martin.petersen@oracle.com, ONeukum@suse.com, oleksandr@natalenko.name, oleg.b.antonyan@gmail.com, Linux PM list , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, LKML , linux-media@vger.kernel.org, shuahkh@osg.samsung.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 3, 2017 at 3:00 PM, Jiri Kosina wrote: > On Tue, 3 Oct 2017, Pavel Machek wrote: > >> > Again, I agree that the (rare) kthreads that are actually "creating" new >> > I/O have to be somehow frozen and require special care. >> >> Agreed. Was any effort made to identify those special kernel threads? > > I don't think there is any other way than just inspecting all the > try_to_freeze() instances in the kernel, and understanding what that > particular kthread is doing. > > I've cleaned up most of the low-hanging fruit already, where the > try_to_freeze() was obviously completely pointless, but a lot more time > needs to be invested into this. > There are about 36 drivers that call try_to_freeze() and half (18 ) of those are media drivers. Maybe it is easier handle sub-system by sub-system basis for a review of which one of these usages could be removed. cc'ing Mauro and linux-media thanks, -- Shuah From 1580272105089669572@xxx Tue Oct 03 21:08:39 +0000 2017 X-GM-THRID: 1580263668100714425 X-Gmail-Labels: Inbox,Category Forums