xfs
[Top] [All Lists]

[PATCH 0/2 v2] percpu_counter: xfs requires custom compare batch size

To: xfs@xxxxxxxxxxx
Subject: [PATCH 0/2 v2] percpu_counter: xfs requires custom compare batch size
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 13 May 2015 09:52:32 +1000
Cc: linux-kernel@xxxxxxxxxxxxxxx, peterz@xxxxxxxxxxxxx, tj@xxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Hi folks,

This is v2 of the regression fix for the new generic per-cpu
superblock counter code in XFS. The problems fixed arise from using
custom batch sizes for addition and decrement exceeding the
"accurate compare" bounds in percpu_counter_compare() and hence
resulting in incorrect comparisons being made.

This regression was introduced in 4.1-rc1 and it requires a small
tweak to the percpu counter infrastructure to fix, hence the two
patches.

Comments welcome!

-Dave.

<Prev in Thread] Current Thread [Next in Thread>