This reverts commit
372c2572336468cbf60272aa7e735b7ca0c3807c. The
use of the PF_MEMALLOC flag was always a hack to work around memory
reclaim deadlocks. Those issues are believed to be resolved so this
workaround can be safely reverted.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
#define TASKQ_DYNAMIC 0x00000004
#define TASKQ_THREADS_CPU_PCT 0x00000008
#define TASKQ_DC_BATCH 0x00000010
-#define TASKQ_NORECLAIM 0x00000020
typedef unsigned long taskqid_t;
typedef void (task_func_t)(void *);
tq = tqt->tqt_tq;
current->flags |= PF_NOFREEZE;
- /* Disable the direct memory reclaim path */
- if (tq->tq_flags & TASKQ_NORECLAIM)
- current->flags |= PF_MEMALLOC;
-
sigfillset(&blocked);
sigprocmask(SIG_BLOCK, &blocked, NULL);
flush_signals(current);