From: Ralph Campbell Date: Fri, 19 Oct 2007 22:04:10 +0000 (-0700) Subject: IB/ipath: Fix a race where s_last is updated without lock held X-Git-Tag: v2.6.24-rc2~71^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fffbfeaa680e2b87a591e141f2aa7e9e91184956;p=pandora-kernel.git IB/ipath: Fix a race where s_last is updated without lock held There is a small window where a send work queue entry could be overwritten by ib_post_send() because s_last is updated before the entry is read. This patch closes the window by acquiring the lock and updating the last send work queue entry index after reading the wr_id. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- Reading git-diff-tree failed