-
由 David Jeffery 提交于
copy_complete()'s processing of out_of_order_list can result in quadratic complexity in the worst case. As such it was the source of consuming too much cpu and the source of significant loss in performance. Fix this by converting out_of_order_list to an rbtree. This improved a dm-snapshot test copy workload from 32 seconds to 4 seconds. Signed-off-by: NDavid Jeffery <djeffery@redhat.com> Signed-off-by: NMikulas Patocka <mpatocka@redhat.com> Tested-by: NBrett Hull <bhull@redhat.com> Signed-off-by: NMike Snitzer <snitzer@redhat.com>
3db2776d