From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH] IB/mlx4: fix possible deadlock with sm_lock spinlock Date: Tue, 07 Aug 2012 18:35:10 +0000 Message-ID: <50215FDE.2090904@acm.org> References: <1343982405-2828-1-git-send-email-jackm@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343982405-2828-1-git-send-email-jackm-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jack Morgenstein Cc: roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dotanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org, ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org, yevgenyp-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 08/03/12 08:26, Jack Morgenstein wrote: > The sm_lock spinlock is taken in the process context by mlx4_ib_modify_device, > and in the interrupt context by update_sm_ah. > > Need to take that spinlock with irqsave, and release it with irqrestore. > > [ ... ] > > Reported by: Or Gerlitz > Signed-off-by: Jack Morgenstein Tested-by: Bart Van Assche -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html