From: Keir Fraser Subject: Re: [RFC][PATCH] walking the page lists needs the page_alloc lock Date: Fri, 13 Aug 2010 08:10:01 +0100 Message-ID: References: <4C650B17020000780000FAA2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C650B17020000780000FAA2@vpn.id2.novell.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: Jan Beulich Cc: Tim Deegan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 13/08/2010 08:06, "Jan Beulich" wrote: >>> But then, to avoid a hanging system, these should be trylock-s >>> rather than plain locks, shouldn't they? >> >> Why? The handler is called in softirq context. It should be safe to spin. > > Hmm, indeed. I was looking at others, and at least > domain_dump_evtchn_info() also uses a trylock - apparently for > no good reason. Well, since you wrote that function, would you like me to switch domain_dump_evtchn_info() to do a proper spin_lock()? -- Keir