Stupid The effect is that it enables a major part of the SCSI TCQ stuff. It seems to clamp down the batches a lot more. An effect is that devices like IDE, with small request sizes get even less async writes though, so it will be important drivers/block/as-iosched.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/block/as-iosched.c~as-stupid drivers/block/as-iosched.c --- 25/drivers/block/as-iosched.c~as-stupid 2003-06-04 19:36:33.000000000 -0700 +++ 25-akpm/drivers/block/as-iosched.c 2003-06-04 19:36:33.000000000 -0700 @@ -1214,9 +1214,9 @@ static int as_dispatch_request(struct as dispatch_writes: BUG_ON(RB_EMPTY(&ad->sort_list[REQ_ASYNC])); - ad->batch_data_dir = REQ_ASYNC; if (ad->batch_data_dir == REQ_SYNC) ad->changed_batch = 1; + ad->batch_data_dir = REQ_ASYNC; ad->current_batch_expires = ad->batch_expire[REQ_ASYNC]; arq = ad->next_arq[ad->batch_data_dir]; goto dispatch_request; @@ -1239,7 +1239,7 @@ fifo_expired: if (ad->changed_batch) { if (ad->changed_batch == 1 && ad->nr_dispatched) return 0; - if (ad->changed_batch == 2 && ad->batch_data_dir == REQ_ASYNC) + if (ad->changed_batch == 1 && ad->batch_data_dir == REQ_ASYNC) ad->changed_batch = 0; else ad->changed_batch = 2; _