]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/zfs_context.h
Mark IO pipeline with PF_FSTRANS
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 13 Jul 2014 18:35:19 +0000 (14:35 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Jan 2015 22:28:05 +0000 (14:28 -0800)
commit92119cc259ee2f9ebde14145f549d6313f557759
treef401b89e39084c21c15049d26951a1e99d4aebef
parentd958324f97f4668a2a6e4a6ce3e5ca09b71b31d9
Mark IO pipeline with PF_FSTRANS

In order to avoid deadlocking in the IO pipeline it is critical that
pageout be avoided during direct memory reclaim.  This ensures that
the pipeline threads can always make forward progress and never end
up blocking on a DMU transaction.  For this very reason Linux now
provides the PF_FSTRANS flag which may be set in the process context.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/zfs_context.h
lib/libzpool/kernel.c
module/zfs/txg.c
module/zfs/vdev_file.c
module/zfs/zio.c
module/zfs/zpl_file.c
module/zfs/zvol.c