commit | 17181fb7a0c3a279196c0eeb2caba65a1519614b | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Wed Nov 05 17:00:13 2014 -0500 |
committer | Mike Snitzer <snitzer@redhat.com> | Wed Nov 12 20:15:04 2014 -0500 |
tree | e8f9d8b7b2134f55e75fca41b9d4fa0165e2f088 | |
parent | d1d9220cbaeecce910f3ecfeb71cc897a678eb68 [diff] |
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 <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>