From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80E64C43140 for ; Thu, 21 Jun 2018 17:27:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36B3021887 for ; Thu, 21 Jun 2018 17:27:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36B3021887 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933346AbeFUR1d (ORCPT ); Thu, 21 Jun 2018 13:27:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:56220 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933187AbeFUR1c (ORCPT ); Thu, 21 Jun 2018 13:27:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A56D0AD31; Thu, 21 Jun 2018 17:27:30 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 34F1BDA8D3; Thu, 21 Jun 2018 19:24:40 +0200 (CEST) Date: Thu, 21 Jun 2018 19:24:40 +0200 From: David Sterba To: Arnd Bergmann Cc: Chris Mason , Josef Bacik , David Sterba , Qu Wenruo , Nikolay Borisov , Anand Jain , Liu Bo , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] [v2] btrfs: use monotonic time for transaction handling Message-ID: <20180621172440.GT24375@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Arnd Bergmann , Chris Mason , Josef Bacik , David Sterba , Qu Wenruo , Nikolay Borisov , Anand Jain , Liu Bo , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180621160420.139575-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621160420.139575-1-arnd@arndb.de> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 21, 2018 at 06:04:05PM +0200, Arnd Bergmann wrote: > The transaction times were changed to ktime_get_real_seconds to avoid > the y2038 overflow, but they still have a minor problem when they go > backwards or jump due to settimeofday() or leap seconds. > > This changes the transaction handling to instead use ktime_get_seconds(), > which returns a CLOCK_MONOTONIC timestamp that has neither of those > problems. > > Signed-off-by: Arnd Bergmann > --- > v2: Rebased on top of an earlier patch by Allen Pais, which > also obsoleted the original patch 2/3 1 and 2 added to patch queue, thanks.