Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Disable direct reclaim in taskq worker threads on Linux 3.9+ #474

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions module/spl/spl-taskq.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,10 @@ taskq_thread(void *args)
tq = tqt->tqt_tq;
current->flags |= PF_NOFREEZE;

#if defined(PF_MEMALLOC_NOIO)
(void) memalloc_noio_save();
#endif

sigfillset(&blocked);
sigprocmask(SIG_BLOCK, &blocked, NULL);
flush_signals(current);
Expand Down