]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: fix a harmless race when working out if a block is discarded
authorJoe Thornber <ejt@redhat.com>
Tue, 25 Nov 2014 13:14:57 +0000 (13:14 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Dec 2014 16:30:11 +0000 (11:30 -0500)
commit852cb57fb176e13d2710f3a3f7ac69ab96639f32
tree3c6a8a4ea99883f16b94a177f7e54b6f286e1206
parent3fa5cc3260f442646459d0e368a5a91c9d946bf0
dm cache: fix a harmless race when working out if a block is discarded

It is more correct to hold the cell before checking the discard state.
These flags are only used as hints to the policy so this change will
have negligable effect.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c