diff options
Diffstat (limited to 'module/zfs/txg.c')
-rw-r--r-- | module/zfs/txg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/module/zfs/txg.c b/module/zfs/txg.c index c234567d7..aefda6f69 100644 --- a/module/zfs/txg.c +++ b/module/zfs/txg.c @@ -382,6 +382,15 @@ txg_sync_thread(dsl_pool_t *dp) callb_cpr_t cpr; uint64_t start, delta; +#ifdef _KERNEL + /* + * Annotate this process with a flag that indicates that it is + * unsafe to use KM_SLEEP during memory allocations due to the + * potential for a deadlock. KM_PUSHPAGE should be used instead. + */ + current->flags |= PF_NOFS; +#endif /* _KERNEL */ + txg_thread_enter(tx, &cpr); start = delta = 0; |