On Wed, 7 Feb 2001, Jens Axboe wrote: > > > [...] so I would be _really_ nervous about just turning it on > > silently. This is all very much a 2.5.x-kind of thing ;) > > Then you might want to apply this :-) > > --- drivers/block/ll_rw_blk.c~ Wed Feb 7 02:38:31 2001 > +++ drivers/block/ll_rw_blk.c Wed Feb 7 02:38:42 2001 > @@ -1048,7 +1048,7 @@ > /* Verify requested block sizes. */ > for (i = 0; i < nr; i++) { > struct buffer_head *bh = bhs[i]; > - if (bh->b_size % correct_size) { > + if (bh->b_size != correct_size) { > printk(KERN_NOTICE "ll_rw_block: device %s: " > "only %d-char blocks implemented (%u)\n", > kdevname(bhs[0]->b_dev), Actually, I'd rather leave it in, but speed it up with the saner and faster if (bh->b_size & (correct_size-1)) { ... That way people who _want_ to test the odd-size thing can do so. And normal code (that never generates requests on any other size than the "native" size) won't ever notice either way. (Oh, we'll eventually need to move to "correct_size == hardware blocksize", not the "virtual blocksize" that it is now. As it it a tester needs to set the soft-blk size by hand now). Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jeff V. Merkey
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jeff V. Merkey
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jeff V. Merkey
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... David Howells
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Stephen C. Tweedie
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Stephen C. Tweedie
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Stephen C. Tweedie
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Richard Gooch
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Stephen C. Tweedie
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound e... Jens Axboe