dm thin: grab a virtual cell before looking up the mapping
authorJoe Thornber <ejt@redhat.com>
Fri, 10 Oct 2014 08:41:09 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:02 +0000 (09:23 -0800)
commit5f64b0f2cbb9c15d0a1495d8fa3a102538a4a688
treefc3ac900e05365751acf46fee72a81fed81fda38
parent656b20b4c61c629293f628cb9345cd6a9c3775cf
dm thin: grab a virtual cell before looking up the mapping

commit c822ed967cba38505713d59ed40a114386ef6c01 upstream.

Avoids normal IO racing with discard.

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