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: Fri, 3 Jun 2011 17:06:43 -0400 From: Vivek Goyal <vgoyal@...hat.com> To: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org, axboe@...nel.dk Cc: vgoyal@...hat.com, arighi@...eler.com, fengguang.wu@...el.com, jack@...e.cz, akpm@...ux-foundation.org Subject: [PATCH 2/8] blk-throttle: do not enforce first queued bio check in tg_wait_dispatch Soon we will be using same wait routines for checking the wait for task also and no bio is involved. So get rid of any bio dependencies and leave it to caller that if andy bio or task is queued in the group in same direction, then don't call this routine. Signed-off-by: Vivek Goyal <vgoyal@...hat.com> --- block/blk-throttle.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 791116e..1259ce6 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -696,14 +696,6 @@ tg_wait_dispatch(struct throtl_data *td, struct throtl_grp *tg, struct bio *bio) bool rw = bio_data_dir(bio); unsigned long bps_wait = 0, iops_wait = 0, max_wait = 0; - /* - * Currently whole state machine of group depends on first bio - * queued in the group bio list. So one should not be calling - * this function with a different bio if there are other bios - * queued. - */ - BUG_ON(tg->nr_queued[rw] && bio != bio_list_peek(&tg->bio_lists[rw])); - /* If tg->bps = -1, then BW is unlimited */ if (tg->bps[rw] == -1 && tg->iops[rw] == -1) return 0; -- 1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists