From: Mikulas Patocka Date: Wed, 5 Nov 2014 22:00:13 +0000 (-0500) Subject: dm thin: fix a race in thin_dtr X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~22^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17181fb7a0c3a279196c0eeb2caba65a1519614b;p=pandora-kernel.git dm thin: fix a race in thin_dtr As long as struct thin_c is in the list, anyone can grab a reference of it. Consequently, we must wait for the reference count to drop to zero *after* we remove the structure from the list, not before. Signed-off-by: Mikulas Patocka Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed