Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1126933ybl; Thu, 12 Dec 2019 10:02:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxKFozEiBLk9EAi4n6jJxmvNIR7fDkJlgBID6vtpVQ0dnWy3iytTpI5RW6/AxtcdLXIFqUT X-Received: by 2002:aca:4587:: with SMTP id s129mr5646832oia.124.1576173773517; Thu, 12 Dec 2019 10:02:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576173773; cv=none; d=google.com; s=arc-20160816; b=luiwcMN4YUvUV/A4C8me9vDv2YdhSZKX4MVuOzqdo0P37NO2y1q/FlysNGlHmBacaB y1JBUAV4b3YUWHeifYtKmPthUPtZE8AqPLg7/F7IyBz3DoFVqncjC4vefISnRe7/XO3B xjqkGJHhr8H/TP+Zfh1Ra2A/F3CndT+tqDGtHkAgKFgpXAqMjXWa/kU2nmGnmh0j3U8V /atBgeAtZISgmvvzLCmthQtsOgOZRJ/XFtNdOJ0izuGS1NRV+psy9qU5+ltAdp8mhAgk 4CDv7xPJW/XnCXzouxnvbXSGp+GReePS6A+VwOztyLCVM0HqH2Ms7mI92J4VlIsu8ckS K0tg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W8g1+ozkiIR1MLj1g+IO4zEBKuZIVh2btHzKLjUbYxU=; b=rrsIn0NtZfCXDfgvfdYR2EdUgGWylytQkm+dR/RLyHfP3r76qtQBJp6dJF5FMZy8Gd yYTf0r2ttX099d6KMTD4pX1w0QAtPzRtSFkN0qzapf4uoAgTCXj70IppzUEMA+Ss64rj CQ488OjB/RETf4Cpq7x2gMEz0sU/EGflD5yO0+hAgsx29ceXX65yGtbDi1Y7RHJ6klDD ZiS+rAqowpvCxRuBQlOBiwdM2IDsFw6J072hCYGZxcKUuuqS+xoBzgmMJy+Mr97iNd4O dxXTMYdTvkZTLtkm98x84vwsvu/FXW5wLztkWEQAQWzgDZU203GO1CrgcXgciz2bf9yX RBMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si3607387oif.167.2019.12.12.10.02.37; Thu, 12 Dec 2019 10:02:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730323AbfLLSAc (ORCPT + 99 others); Thu, 12 Dec 2019 13:00:32 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:48429 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730023AbfLLSAa (ORCPT ); Thu, 12 Dec 2019 13:00:30 -0500 Received: from 79.184.255.82.ipv4.supernova.orange.pl (79.184.255.82) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.320) id c27927c87785b29b; Thu, 12 Dec 2019 19:00:28 +0100 From: "Rafael J. Wysocki" To: Jonas Meurer Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek , Len Brown , Tim Dittler , Yannik Sembritzki Subject: Re: [PATCH 0/2] PM: Add a switch for disabling/enabling sync() before suspend Date: Thu, 12 Dec 2019 19:00:28 +0100 Message-ID: <3713877.SYXNVznUqu@kreacher> In-Reply-To: References: <1ee5b9ef-f30e-3fde-2325-ba516a96ced5@freesources.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, December 11, 2019 4:59:29 PM CET Jonas Meurer wrote: > 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? This is not a super-high priority patchset IMO, but it is in my list of things to look at. Thanks!