Riots in an overcrowded prison in Sri Lanka killed 20 inmates and eight guards.