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)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Nov 2014 18:05:53 +0000 (13:05 -0500)
commitc822ed967cba38505713d59ed40a114386ef6c01
treefe7f5014b55b2130615d699a80b04427b4f1d3c2
parentd20c4b08be822ab1c5d333297f38f1b532d3febc
dm thin: grab a virtual cell before looking up the mapping

Avoids normal IO racing with discard.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-thin.c