From: Keir Fraser Subject: Re: Re: Should shadow_lock be spin_lock_recursive? Date: Thu, 12 May 2005 08:57:04 +0100 Message-ID: <003f7d9d198a2dce1710142475732b61@cl.cam.ac.uk> References: <4282441E.6080900@intel.com> <4282B804.5010403@intel.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4282B804.5010403@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xiaofeng Ling Cc: Arun Sharma , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12 May 2005, at 02:57, Xiaofeng Ling wrote: > This dead lock happened on VNIF code when enabled shadow mode. > The shadow_lock path is so complex and maybe using recurisve lock > is the easiest way to avoid dead lock currently before clearing > the path or splitting the lock . shadow_lock() and show_unlock() should just get the per-domain BIGLOCK I think. That's recursive anyway. -- Keir