[ewg] 1.6 pull request: IB/qib: Fix potential deadlock with link down interrupt
Mike Marciniszyn
mike.marciniszyn at qlogic.com
Fri May 27 07:04:36 PDT 2011
Vlad,
Please pull the following patch from ~mmarciniszyn/scm/ofed_1_6/linux-2.6.
Thanks!
Mike
commit afec81fe25b83cc314fd366a58b841e959735b31
Author: Ram Vepa <ram.vepa at qlogic.com>
Date: Fri May 27 09:54:02 2011 -0400
IB/qib: Fix potential deadlock with link down interrupt
There is a possibility of a deadlock due to the way locks are acquired and
released in qib_set_uevent_bits(). The function qib_set_uevent_bits() is cal
in process context calling spin_lock() and spin_unlock() while this same loc
is acquired/released in interrupt context which can lead to a deadlock when
running on the same cpu.
The fix is to replace spin_lock() and spin_unlock() with spin_lock_irqsave()
and spin_unlock_irqrestore() respectively in qib_set_uevent_bits().
Signed-off-by: Mike Marciniszyn <mike.marciniszyn at qlogic.com>
This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
More information about the ewg
mailing list