On Thu, Jul 02, 2015 at 11:29:56PM +0900, Akinobu Mita wrote: > There are several race conditions while freezing queue. ... > Also, percpu_ref_reinit() and percpu_ref_kill() must not be executed > at the same time. Because both functions could call > __percpu_ref_switch_to_percpu() which adds the bias value and > initialize percpu counter. > > Fix those races by serializing with per-queue mutex. > > Signed-off-by: Akinobu Mita <[email protected]> > Cc: Jens Axboe <[email protected]> > Cc: Ming Lei <[email protected]>
Yeap, all of the kill/reinit/switch mode functions assume caller side synchronization. Acked-by: Tejun Heo <[email protected]> Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

