From: Andy Grover Date: Sat, 20 Feb 2010 02:01:41 +0000 (-0800) Subject: RDS: Rewrite rds_send_drop_to() for clarity X-Git-Tag: v2.6.37-rc1~147^2~499^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c82eaf00ec7d460932be9314b29997006b799b6;p=pandora-kernel.git RDS: Rewrite rds_send_drop_to() for clarity This function has been the source of numerous bugs; it's just too complicated. Simplified to nest spinlocks cleanly within the second loop body, and kick out early if there are no rms to drop. This will be a little slower because conn lock is grabbed for each entry instead of "caching" the lock across rms, but this should be entirely irrelevant to fastpath performance. Signed-off-by: Andy Grover --- Reading git-diff-tree failed