On Thu, 2009-08-13 at 15:47 -0400, Stephen Gallagher wrote:
Simo's concerns above have been addressed in the attached
patches.
Patch 0001: Don't go to the backend for identical cache entry requests
Currently, if an additional request comes in for a cache entry
while that same entry is already in the process of being refreshed,
we start a duplicate cache update request. This patch adds allows
the cache to maintain a hash table of all in-progress requests and
queue up multiple callbacks for updates in progress. Once the data
is returned, all of these callbacks will fire.
Patch 0002: Refactor responder_dp.c
Many of the functions in responder_dp.c were originally NSS-
specific and were moved there from the NSS responder code. Since
they are now generic to any responder, rename them to sss_dp_*
The second patch is a global find-and-replace and has no functional
effect.
Had no time to actually test them but the patches look fine to me.
Ack.
Simo.