| 218 | struct fail_point_setting *fp_setting); |
| 219 | |
| 220 | bool |
| 221 | fail_point_is_off(struct fail_point *fp) |
| 222 | { |
| 223 | bool return_val; |
| 224 | struct fail_point_setting *fp_setting; |
| 225 | struct fail_point_entry *ent; |
| 226 | |
| 227 | return_val = true; |
| 228 | |
| 229 | fp_setting = fail_point_setting_get_ref(fp); |
| 230 | if (fp_setting != NULL) { |
| 231 | TAILQ_FOREACH(ent, &fp_setting->fp_entry_queue, |
| 232 | fe_entries) { |
| 233 | if (!ent->fe_stale) { |
| 234 | return_val = false; |
| 235 | break; |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | fail_point_setting_release_ref(fp); |
| 240 | |
| 241 | return (return_val); |
| 242 | } |
| 243 | |
| 244 | /* Allocate and initialize a struct fail_point_setting */ |
| 245 | static struct fail_point_setting * |
no test coverage detected