]> git.itanic.dy.fi Git - linux-stable/commit
dm thin: add timeout to stop out-of-data-space mode holding IO forever
authorJoe Thornber <ejt@redhat.com>
Fri, 9 May 2014 14:59:38 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:25 +0000 (10:28 -0700)
commit6a1170d673278d51c8ceee2cb091d4baf4ef1ba2
treeafab2c0dff714ae0bc8e09327cd4d9aa0739f691
parent36f7757dadcd45c0ecce396662f923c0841e12ff
dm thin: add timeout to stop out-of-data-space mode holding IO forever

commit 85ad643b7e7e52d37620fb272a9fd577a8095647 upstream.

If the pool runs out of data space, dm-thin can be configured to
either error IOs that would trigger provisioning, or hold those IOs
until the pool is resized.  Unfortunately, holding IOs until the pool is
resized can result in a cascade of tasks hitting the hung_task_timeout,
which may render the system unavailable.

Add a fixed timeout so IOs can only be held for a maximum of 60 seconds.
If LVM is going to resize a thin-pool that is out of data space it needs
to be prompt about it.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-thin.c