zfsonlinux/zfs — pull request #2030 by tuxoko (2014-01-07 04:24:12+00:00)
Title: Force direct reclaim threads to wait for concurrent reclaimer

Currently, direct reclaim threads will return immediately upon seeing a
concurrent reclaimer in progress. These threads might go on to invoke OOM if
ARC does not evict enough memory in time.

This patch tries to alleviate this issue by forcing the direct reclaim threads
to wait on arc_reclaim_thr_lock. Also, switch on arc_no_grow before returning.