lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 14 Jan 2016 20:12:38 +0100 From: Peter Zijlstra <peterz@...radead.org> To: Luca Abeni <luca.abeni@...tn.it> Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@....com> Subject: Re: [RFC 5/8] Track the "total rq utilisation" too On Thu, Jan 14, 2016 at 04:24:50PM +0100, Luca Abeni wrote: > + if (dl_rq->running_bw > dl_rq->this_bw) { > + WARN_ON(1); > + dl_rq->running_bw = dl_rq->this_bw; > + } FWIW you can write this as: if (WARN_ON(dl_rq->running_bw > dl_rq->this_bw)) dl_rq->running_bw = dl_rq->this_bw;
Powered by blists - more mailing lists