Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp871831ybl; Wed, 11 Dec 2019 08:47:14 -0800 (PST) X-Google-Smtp-Source: APXvYqysHMUuaIx4K+MG9IrfB2xgsAmhagVpIKE4grWY5suuStUegzKPNXezyJJfuHpAaYIQilhx X-Received: by 2002:a05:6830:10a:: with SMTP id i10mr2807768otp.365.1576082834517; Wed, 11 Dec 2019 08:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576082834; cv=none; d=google.com; s=arc-20160816; b=FCru/OerN02LlQeiyvsoXi116Z4NCNxwzVp1sq7L6seF+ABGeMi0lcqCceutXl70cY bWExJLMRznpZ2XaOTVIRNBBLcpcqHbo3fwJmfhspo3Pt07jFUBUYPslPdpMrtG3pOzZK ZJ3Yve/jja5RKDNIoFcIosg70kwO98a2jYEtVpGllYxVyR9iSIGEUPv0Gl4Ksx22my/E eAoR1mlveq3xRuODOyFYadTSfh5sQAEHU1FY42RocQJZysk3YyKBhsWU0zjk25o6lqlb F2lTYoFQRmNd1EKHiVnD+kT0pbfexHghnkAHeQ3DRJLv4DjLxsir91livO3ghhau1TLm pqxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:references:cc:to:from:subject:dkim-signature; bh=ZwVE5juKkzQjBKLyl8yXtzZwBbAcQhSDRQj4XVyVfGc=; b=Bovhh9lKV5syfx4mfFdInwRvYiJnj3DrzK3ynB2N66Ff2tUOavnA5lSmJhIrIytK81 c64diJSLdVTuDvHxFAzv0RTUb15kDMwnden8mEno1hd8vdhC9ryCYpMPi/HqjobajpD7 /ql4s+54ONv1wSy3ea9GAl92VNo/JhxQRUnKMoha+HeOCVNpvvclLPt+xAVIiANKJhWM GD/riOZHaTI+9rfwMaqcA89rChaCAnfHImluNV6g91bxhHsgPP+6ito0LGCOZzsYUgcV QXoug73k+XciDxg3RYL7TYcDTUeaS2H9mzSQaanvqbDI3MpVKSSnjJGm4WHLsAFA2EFX mYlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@freesources.org header.s=20160526 header.b=CTZByf3h; 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=fail (p=NONE sp=NONE dis=NONE) header.from=freesources.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si1361141otm.261.2019.12.11.08.46.56; Wed, 11 Dec 2019 08:47:14 -0800 (PST) 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=fail header.i=@freesources.org header.s=20160526 header.b=CTZByf3h; 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=fail (p=NONE sp=NONE dis=NONE) header.from=freesources.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732877AbfLKP7q (ORCPT + 99 others); Wed, 11 Dec 2019 10:59:46 -0500 Received: from mx3.freesources.org ([195.34.172.217]:50360 "EHLO mx3.freesources.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731566AbfLKP7k (ORCPT ); Wed, 11 Dec 2019 10:59:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freesources.org; s=20160526; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZwVE5juKkzQjBKLyl8yXtzZwBbAcQhSDRQj4XVyVfGc=; b=CTZByf3hS2dWOQCVX5WFVmY4Lx aUpNx+ksxgcm1yn/GQhZ8QdwPaPxpeUfnRdAvR4dt0k76hxJ5Zxu8EWKNCdcCC8NISLkYmbeyLeV+ eL01w9h2Oc8vSL+eL9Ddi/kTJLjQNOx2GJY6bUyP5UDxRHr4nkeKSXl4N+RjnsH2xZZg=; Received: from anon-43-116.vpn.ipredator.se ([46.246.43.116]) by mx3.freesources.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1if4Oi-0004tF-LI; Wed, 11 Dec 2019 15:59:32 +0000 Subject: Re: [PATCH 0/2] PM: Add a switch for disabling/enabling sync() before suspend From: Jonas Meurer To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Pavel Machek , Len Brown , Tim Dittler , Yannik Sembritzki References: <1ee5b9ef-f30e-3fde-2325-ba516a96ced5@freesources.org> Autocrypt: addr=jonas@freesources.org; prefer-encrypt=mutual; keydata= mQINBEqFXAEBEAC+7gfLht8lDqGH1EPYoctDHvWQ4nk60UFDLfjqHmBGReL/9C7CyxYaqgY4 V1/DXPCmsO5PvHMSi6VPn3B81alPKMT6syQhxDN6CXETh/mrxRbTPyQVSKYdD/BvA94vgwfy iInR0N7K6J/mRxqKug14vXlABvfmyWBnW89d15OWs9qy1Ge1mHaA8UgIoUInR2mMqNHQf0nF /TtClN2uPmtv/GeGHfSSCQEjYq9Ih2Z1Re2hnwW1peEc0x7piKUXCXHGyrQdz5IE69SqV1gg vafUrWHNPWz5ZtXsihYioNi3ISuoHUjkKdn+t55en5tvWvi+2JQnMCGa/Wr7iA2EOxallR+z rQRBDe/6wp1XEz6vN1LqCeaRyVOR6q00PtN/Ot0tzPswrHKE6binqG6FBRbu+zeo87cNbMmH IAdIT3ysZCAwA2g310fBByCSiNnfhHg2GyqfC4eDtL/K7uVNqQQEon0yv8lzyU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cserZHCUnb9WBW4qMNyy9PI53Ha6bvfZXbZCeS3PjTo 2SCIHpzHfm/mpRL2 Message-ID: Date: Wed, 11 Dec 2019 16:59:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1ee5b9ef-f30e-3fde-2325-ba516a96ced5@freesources.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Jonas Meurer: > Hello, > > Introduce a new run-time sysfs switch to disable/enable sync() before > system suspend. This is useful to avoid races and deadlocks if block > devices have been suspended before, e.g. by 'cryptsetup luksSuspend'. > > The second patch changes the behaviour of build-time switch > 'CONFIG_SUSPEND_SKIP_SYNC' accordingly, using the build-time switch value > as default for our new run-time switch '/sys/power/sync_on_suspend'. > > Jonas Meurer (2): > PM: Add a switch for disabling/enabling sync() before suspend > PM: CONFIG_SUSPEND_SKIP_SYNC sets default for '/sys/power/sync_on_suspend' > > Documentation/ABI/testing/sysfs-power | 15 +++++++++++++++ > include/linux/suspend.h | 2 ++ > kernel/power/Kconfig | 5 ++++- > kernel/power/main.c | 33 +++++++++++++++++++++++++++++++++ > kernel/power/suspend.c | 2 +- > 5 files changed, 55 insertions(+), 2 deletions(-) Any chance to get a review/comment on this patch? What's the next logical steps to get it merged? Cheers jonas