]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: fix spurious cell_defer when dealing with partial block at end of device
authorJoe Thornber <ejt@redhat.com>
Fri, 28 Nov 2014 09:48:25 +0000 (09:48 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Dec 2014 16:30:13 +0000 (11:30 -0500)
commit235018a7e820d3729269c77f335fedae4a0076a2
tree64efe7b50085b22bf281825e34af5f8fc11a5372
parentbf2ffff1c4b102df3e916e6386214f9e18b3ae0e
dm cache: fix spurious cell_defer when dealing with partial block at end of device

We never bother caching a partial block that is at the back end of the
origin device.  No cell ever gets locked, but the calling code was
assuming it was and trying to release it.

Now the code only releases if the cell has been set to a non NULL
value.

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