From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426782AbcBRSGF (ORCPT ); Thu, 18 Feb 2016 13:06:05 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32969 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423478AbcBRSGC (ORCPT ); Thu, 18 Feb 2016 13:06:02 -0500 Subject: Re: [PATCH v2 08/14] KVM: x86: remove notifiers from PIT discard policy To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , linux-kernel@vger.kernel.org References: <1455736496-374-1-git-send-email-rkrcmar@redhat.com> <1455736496-374-9-git-send-email-rkrcmar@redhat.com> Cc: kvm@vger.kernel.org, Yuki Shibuya From: Paolo Bonzini Message-ID: <56C60807.7030104@redhat.com> Date: Thu, 18 Feb 2016 19:05:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1455736496-374-9-git-send-email-rkrcmar@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/02/2016 20:14, Radim Krčmář wrote: > Discard policy doesn't rely on information from notifiers, so we don't > need to register notifiers unconditionally. We kept correct counts in > case userspace switched between policies during runtime, but that can be > avoided by reseting the state. Ah okay so the WARN_ON could actually be triggered. But otherwise I think my suggestion should work. Paolo