Disable direct reclaim on zvols
authorRichard Yao <ryao@cs.stonybrook.edu>
Mon, 16 Apr 2012 10:56:20 +0000 (06:56 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Apr 2012 18:25:36 +0000 (11:25 -0700)
commitce90208cf9e04df966429f115d8831371ea9afce
tree9c343a6f5181463626f6824f84f23785c7f8e408
parent518b4876022eee58b14903da09b99c01b8caa754
Disable direct reclaim on zvols

Previously, it was possible for the direct reclaim path to be invoked
when a write to a zvol was made. When a zvol is used as a swap device,
this often causes swap requests to depend on additional swap requests,
which deadlocks. We address this by disabling the direct reclaim path
on zvols.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #342
module/zfs/zvol.c