]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: performance improvement to discard processing
authorJoe Thornber <ejt@redhat.com>
Fri, 12 Sep 2014 10:34:01 +0000 (11:34 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:27 +0000 (15:25 -0500)
commit1de56c0d80f7fa65439b2dbf7dea54915a74cc55
tree93ce0a65769205e6330ccf0691777eeaf51011fa
parent453f80e04920e3cefca83cc43d4237d4af093a43
dm thin: performance improvement to discard processing

When processing a discard bio, if the block is already quiesced do the
discard immediately rather than adding the mapping to a list for the
next iteration of the worker thread.

Discarding a fully provisioned 100G thin volume with 64k block size goes
from 860s to 95s with this change.

Clearly there's something wrong with the worker architecture, more
investigation needed.

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