| 496 | } |
| 497 | |
| 498 | void |
| 499 | fail_point_alloc_callout(struct fail_point *fp) |
| 500 | { |
| 501 | |
| 502 | /** |
| 503 | * This assumes that calls to fail_point_use_timeout_path() |
| 504 | * will not race. |
| 505 | */ |
| 506 | if (fp->fp_callout != NULL) |
| 507 | return; |
| 508 | fp->fp_callout = fp_malloc(sizeof(*fp->fp_callout), M_WAITOK); |
| 509 | callout_init(fp->fp_callout, CALLOUT_MPSAFE); |
| 510 | } |
| 511 | |
| 512 | /** |
| 513 | * Free the resources held by a fail_point, and wake any paused threads. |
no test coverage detected