dm snapshot: fix invalidation deadlock
commitd91447ee784cf4954cea7e1e1018d1809d084f67
authorMilan Broz <mbroz@redhat.com>
Thu, 12 Jul 2007 16:28:00 +0000 (12 17:28 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Nov 2007 17:56:07 +0000 (5 09:56 -0800)
treef7417b7409ced5fade6659dfdf5f173cb9836cee
parente2b35e3aaf9f6e140a56aba85aca84463a3d16c4
dm snapshot: fix invalidation deadlock

patch fcac03abd325e4f7a4cc8fe05fea2793b1c8eb75 in mainline

Process persistent exception store metadata IOs in a separate thread.

A snapshot may become invalid while inside generic_make_request().
A synchronous write is then needed to update the metadata while still
inside that function.  Since the introduction of
md-dm-reduce-stack-usage-with-stacked-block-devices.patch this has to
be performed by a separate thread to avoid deadlock.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-exception-store.c