mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Revert "Add TASKQ_NORECLAIM flag"
This reverts commit 372c257233
. 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>
This commit is contained in:
parent
e2dcc6e2b8
commit
d47e664ad4
@ -40,7 +40,6 @@
|
|||||||
#define TASKQ_DYNAMIC 0x00000004
|
#define TASKQ_DYNAMIC 0x00000004
|
||||||
#define TASKQ_THREADS_CPU_PCT 0x00000008
|
#define TASKQ_THREADS_CPU_PCT 0x00000008
|
||||||
#define TASKQ_DC_BATCH 0x00000010
|
#define TASKQ_DC_BATCH 0x00000010
|
||||||
#define TASKQ_NORECLAIM 0x00000020
|
|
||||||
|
|
||||||
typedef unsigned long taskqid_t;
|
typedef unsigned long taskqid_t;
|
||||||
typedef void (task_func_t)(void *);
|
typedef void (task_func_t)(void *);
|
||||||
|
@ -442,10 +442,6 @@ taskq_thread(void *args)
|
|||||||
tq = tqt->tqt_tq;
|
tq = tqt->tqt_tq;
|
||||||
current->flags |= PF_NOFREEZE;
|
current->flags |= PF_NOFREEZE;
|
||||||
|
|
||||||
/* Disable the direct memory reclaim path */
|
|
||||||
if (tq->tq_flags & TASKQ_NORECLAIM)
|
|
||||||
current->flags |= PF_MEMALLOC;
|
|
||||||
|
|
||||||
sigfillset(&blocked);
|
sigfillset(&blocked);
|
||||||
sigprocmask(SIG_BLOCK, &blocked, NULL);
|
sigprocmask(SIG_BLOCK, &blocked, NULL);
|
||||||
flush_signals(current);
|
flush_signals(current);
|
||||||
|
Loading…
Reference in New Issue
Block a user