From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx191.postini.com [74.125.245.191]) by kanga.kvack.org (Postfix) with SMTP id 759236B005D for ; Tue, 21 Aug 2012 11:34:34 -0400 (EDT) Message-ID: <1345563260.26596.0.camel@twins> Subject: Re: [PATCH v8 3/5] virtio_balloon: introduce migration primitives to balloon pages From: Peter Zijlstra Date: Tue, 21 Aug 2012 17:34:20 +0200 In-Reply-To: <20120821144013.GA7784@redhat.com> References: <20120821144013.GA7784@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: "Michael S. Tsirkin" Cc: Rafael Aquini , linux-mm@kvack.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Rusty Russell , Rik van Riel , Mel Gorman , Andi Kleen , Andrew Morton , Konrad Rzeszutek Wilk , Minchan Kim On Tue, 2012-08-21 at 17:40 +0300, Michael S. Tsirkin wrote: > > + vb->balloon_status =3D BALLOON_REMOVAL; >=20 > This needs some kind of barrier. >=20 > > kthread_stop(vb->thread);=20 kthread_stop() implies an smp_wmb() [ because it needs to do a wakeup ]. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755108Ab2HUPen (ORCPT ); Tue, 21 Aug 2012 11:34:43 -0400 Received: from casper.infradead.org ([85.118.1.10]:47334 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262Ab2HUPel convert rfc822-to-8bit (ORCPT ); Tue, 21 Aug 2012 11:34:41 -0400 Message-ID: <1345563260.26596.0.camel@twins> Subject: Re: [PATCH v8 3/5] virtio_balloon: introduce migration primitives to balloon pages From: Peter Zijlstra To: "Michael S. Tsirkin" Cc: Rafael Aquini , linux-mm@kvack.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Rusty Russell , Rik van Riel , Mel Gorman , Andi Kleen , Andrew Morton , Konrad Rzeszutek Wilk , Minchan Kim Date: Tue, 21 Aug 2012 17:34:20 +0200 In-Reply-To: <20120821144013.GA7784@redhat.com> References: <20120821144013.GA7784@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2012-08-21 at 17:40 +0300, Michael S. Tsirkin wrote: > > + vb->balloon_status = BALLOON_REMOVAL; > > This needs some kind of barrier. > > > kthread_stop(vb->thread); kthread_stop() implies an smp_wmb() [ because it needs to do a wakeup ].