Jason Woodward has uploaded this change for review.

View Change

nfs_main.c: add prctl(PR_SET_IO_FLUSHER,1) call to avoid kernel deadlocks

See
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=master&id=8d19f1c8e1937baf74e1962aae9f90fa3aeab463

Setting PR_SET_IO_FLUSHER prevents recursive allocation for user space
components that are in the I/O path. Otherwise a deadlock can occur when
device I/O needs to allocate memory but the allocation would require
device I/O to complete.

Change-Id: Ia5328ba133ba3fc4950db22b0ec2aab718143b6c
Signed-off-by: Jason Woodward <jawoodwa@microsoft.com>
---
M src/MainNFSD/nfs_main.c
1 file changed, 18 insertions(+), 0 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/85/1199685/1

To view, visit change 1199685. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ia5328ba133ba3fc4950db22b0ec2aab718143b6c
Gerrit-Change-Number: 1199685
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Woodward <jawoodwa@microsoft.com>