]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ib/ipoib: Fix removing call for update_pmtu from spin-lock context.
authorErez Shitrit <erezsh@mellanox.co.il>
Thu, 29 Nov 2012 07:27:46 +0000 (09:27 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:06 +0000 (14:45 -0700)
commit7d0e35be810cb04862e74f5de9bd8f106c9536b6
treeb8d8128836d7e6ddf30a500b0dc11765ff631c86
parent82b809374bc6841d953691f4c8b7438bfa52c8de
ib/ipoib: Fix removing call for update_pmtu from spin-lock context.

    The function ipoib_cm_send can call the function
    ipoib_cm_skb_too_long under spin_lock_irq, the
    ipoib_cm_skb_too_long function calls update_pmtu which also
    tries to get spin_lock, that can cause to a deadlock.
    In order to solve that I took update_pmtu to workqueue that
    it is not under spin_lock.

V2: Adjusted for kernel 3.7-rc4

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_cm.c