The unified diff between revisions [6676c716..] and [816b792b..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/fs/coss/store_dir_coss.c'
#
#
# patch "src/fs/coss/store_dir_coss.c"
# from [19d4f9ab9f40836bd89d4b34d6a707fb07315f80]
# to [76fa0c36aeb9fe9686300c9510eee08786bfdb95]
#
============================================================
--- src/fs/coss/store_dir_coss.c 19d4f9ab9f40836bd89d4b34d6a707fb07315f80
+++ src/fs/coss/store_dir_coss.c 76fa0c36aeb9fe9686300c9510eee08786bfdb95
@@ -707,7 +707,15 @@ storeCossDirCheckObj(SwapDir * SD, const
return loadav;
}
+char
+storeCossDirCheckLoadAv(SwapDir *SD, store_op_t op)
+{
+ CossInfo *cs = (CossInfo *) SD->fsdata;
+ return (cs->aq.aq_numpending < MAX_ASYNCOP);
+}
+
+
/*
* storeCossDirCallback - do the IO completions
*/
@@ -780,6 +788,7 @@ storeCossDirParse(SwapDir * sd, int inde
sd->statfs = storeCossDirStats;
sd->maintainfs = NULL;
sd->checkobj = storeCossDirCheckObj;
+ sd->checkload = storeCossDirCheckLoadAv;
sd->refobj = NULL; /* LRU is done in storeCossRead */
sd->unrefobj = NULL;
sd->callback = storeCossDirCallback;