diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2013-09-18 19:40:42 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-09-20 10:36:34 -0400 |
commit | 60e356f381954d79088d0455e357db48cfdd6857 (patch) | |
tree | e332051bf8d66d39e556183f9c6845e306a97127 /sound/soc/codecs/wm8961.c | |
parent | 5ea330a75bd86b2b2a01d7b85c516983238306fb (diff) |
dm-snapshot: fix performance degradation due to small hash size
LVM2, since version 2.02.96, creates origin with zero size, then loads
the snapshot driver and then loads the origin. Consequently, the
snapshot driver sees the origin size zero and sets the hash size to the
lower bound 64. Such small hash table causes performance degradation.
This patch changes it so that the hash size is determined by the size of
snapshot volume, not minimum of origin and snapshot size. It doesn't
make sense to set the snapshot size significantly larger than the origin
size, so we do not need to take origin size into account when
calculating the hash size.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/wm8961.c')
0 files changed, 0 insertions, 0 deletions