On 17/02/2016 20:14, Radim Krčmář wrote: > Discard policy doesn't rely on information from notifiers, so we don't > need to register notifiers unconditionally. We kept correct counts in > case userspace switched between policies during runtime, but that can be > avoided by reseting the state.
Ah okay so the WARN_ON could actually be triggered. But otherwise I think my suggestion should work. Paolo

