Skip to content
Commit 7c82eaf0 authored by Andy Grover's avatar Andy Grover
Browse files

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: default avatarAndy Grover <andy.grover@oracle.com>
parent 35b52c70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment