Author: adrian.chadd
Date: Sat Jun 6 09:48:40 2009
New Revision: 14084
Modified:
branches/LUSCA_HEAD/src/store_io.c
Log:
Make the storeOpen() load check optional.
Note that the FS layer still has the oppertunity to deny the swapin read,
which
AFAICT will eventually result in the object being deleted and a new one
being
re-created. This may not be the smartest way to shed load.
Modified: branches/LUSCA_HEAD/src/store_io.c
==============================================================================
--- branches/LUSCA_HEAD/src/store_io.c (original)
+++ branches/LUSCA_HEAD/src/store_io.c Sat Jun 6 09:48:40 2009
@@ -73,7 +73,7 @@
SwapDir *SD = &Config.cacheSwap.swapDirs[e->swap_dirn];
store_io_stats.open.calls++;
load = SD->checkload(SD, ST_OP_OPEN);
- if (load < 0 || load > 1000) {
+ if (load < 0 || (Config.onoff.load_check_stopen && load > 1000) {
store_io_stats.open.loadav_fail++;
return NULL;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---