From: Sathya Perla Date: Thu, 18 Jun 2009 00:02:59 +0000 (+0000) Subject: be2net: Add MCC queue mechanism for BE cmds X-Git-Tag: v2.6.31-rc1~63^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb379ee67a7ec55ff65b467b472f3d69b60ba16;p=pandora-kernel.git be2net: Add MCC queue mechanism for BE cmds Currenlty all cmds use the blocking MCC mbox to post cmds. An mbox cmd is protected via a spin_lock(cmd_lock) and not spin_lock_bh() as it is undesirable to disable BHs while a blocking mbox cmd is in progress (and take long to finish.) This can lockup a cmd in progress in process context. Instead cmds that may be called in BH context must use the MCC queue to post cmds. The cmd completions are rcvd in a separate completion queue and the events are placed in the tx-event queue. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed