From patchwork Mon Jun 29 19:24:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 33027 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5TJRekt030330 for ; Mon, 29 Jun 2009 19:27:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759160AbZF2TZU (ORCPT ); Mon, 29 Jun 2009 15:25:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759227AbZF2TZT (ORCPT ); Mon, 29 Jun 2009 15:25:19 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57925 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753143AbZF2TZP (ORCPT ); Mon, 29 Jun 2009 15:25:15 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5TJPIxK018929; Mon, 29 Jun 2009 15:25:18 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5TJPHrK025422; Mon, 29 Jun 2009 15:25:17 -0400 Received: from redhat.com (vpn-10-178.str.redhat.com [10.32.10.178]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5TJPEFL005326; Mon, 29 Jun 2009 15:25:14 -0400 Date: Mon, 29 Jun 2009 22:24:45 +0300 From: "Michael S. Tsirkin" To: Gregory Haskins , avi@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, avi@redhat.com, mtosatti@redhat.com, paulmck@linux.vnet.ibm.com, markmc@redhat.com Subject: [PATCHv5 6/6] kvm: document lock nesting rule Message-ID: <20090629192445.GG27464@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Document kvm->lock nesting within kvm->slots_lock Signed-off-by: Michael S. Tsirkin --- virt/kvm/kvm_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 728118f..afbf006 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -68,7 +68,7 @@ MODULE_LICENSE("GPL"); /* * Ordering of locks: * - * kvm->lock --> kvm->irq_lock + * kvm->slots_lock --> kvm->lock --> kvm->irq_lock */ DEFINE_SPINLOCK(kvm_lock);