From: "Jan Beulich" Subject: Re: [Xen-changelog] [linux-2.6.18-xen] scsifront: avoid acquiring same lock twice if ring is full Date: Wed, 14 Jan 2015 11:02:26 +0000 Message-ID: <54B65AD20200007800054B6E@mail.emea.novell.com> References: <54B646B8.2090207@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YBLiX-0007ZI-0J for xen-devel@lists.xenproject.org; Wed, 14 Jan 2015 11:02:29 +0000 In-Reply-To: <54B646B8.2090207@suse.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Juergen Gross Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 14.01.15 at 11:36, wrote: > On 01/14/2015 11:22 AM, Xen patchbot-linux-2.6.18-xen wrote: >> @@ -463,7 +461,9 @@ static int scsifront_dev_reset_handler(s >> spin_unlock_irq(host->host_lock); >> err = wait_event_interruptible(info->wq_sync, >> !info->waiting_sync); >> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12) > > Is this correct? I didn't check, but thought up to 2.6.12 the reset > handler would be called with the lock already held. > > In any case: either this test must be removed again or two lines above > another test should be added for the unlock. Indeed, I didn't look closely enough - will revert that addition. Jan