Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbdF2XCD (ORCPT ); Thu, 29 Jun 2017 19:02:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbdF2XCB (ORCPT ); Thu, 29 Jun 2017 19:02:01 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6568078EAA Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=riel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6568078EAA Message-ID: <1498777317.6130.5.camel@redhat.com> Subject: Re: [PATCH 2/5] sched: Always set vtime_snap_whence after accounting vtime From: Rik van Riel To: Frederic Weisbecker , LKML Cc: Peter Zijlstra , Thomas Gleixner , Luiz Capitulino , Ingo Molnar , Wanpeng Li Date: Thu, 29 Jun 2017 19:01:57 -0400 In-Reply-To: <1498756511-11714-3-git-send-email-fweisbec@gmail.com> References: <1498756511-11714-1-git-send-email-fweisbec@gmail.com> <1498756511-11714-3-git-send-email-fweisbec@gmail.com> Organization: Red Hat, Inc Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 29 Jun 2017 23:02:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 20 On Thu, 2017-06-29 at 19:15 +0200, Frederic Weisbecker wrote: > Even though it doesn't have functional consequences, setting > the task's new context state after we actually accounted the pending > vtime from the old context state makes more sense from a review > perspective. > > vtime_user_exit() is the only function that doesn't follow that rule > and that can bug the reviewer for a little while until he realizes > there > is no reason for this special case. > > Cc: Wanpeng Li > Cc: Rik van Riel > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Luiz Capitulino > Signed-off-by: Frederic Weisbecker Acked-by: Rik van Riel