From: Arthur Jones Date: Fri, 14 Sep 2007 19:22:49 +0000 (-0700) Subject: IB/ipath: Use counters in ipath_poll and cleanup interrupts in ipath_close X-Git-Tag: v2.6.24-rc1~1453^2~11 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70c51da2c4f84317bb13a2b564600afdcebd686f;p=pandora-kernel.git IB/ipath: Use counters in ipath_poll and cleanup interrupts in ipath_close ipath_poll() suffered from a couple subtle bugs. Under the right conditions we could leave recv interrupts enabled on an ipath user context on close, thereby taking potentially unwanted interrupts on the next open -- this is fixed by unconditionally turning off recv interrupts on close. Also, we now use counters rather than set/clear bits which allows us to make sure we catch all interrupts at the cost of changing the semantics slightly (it's now give me all events since the last time I called poll() rather than give me all events since I called _this_ poll routine). We also added some memory barriers which may help ensure we get all notifications in a timely manner. Signed-off-by: Arthur Jones Signed-off-by: Roland Dreier --- Reading git-diff-tree failed