Its so quite in hear (maybe because of Ash wednesday?) so I thought
I'd break the silence with a few questions. :)

I've been reading about the block layer and the scatter gather
mechanism which uses an array of bio_vecs in a single bio.

My questions are:
1. Can a particular bio vector (segment) span across a page boundary?
Or will multiple contiguous pages have their own bio_vecs?
So if I have 2 pages in a bio operation, can the i/o request for those
2 pages be represented by a single bio_vec structure?
The elements in a bio_vec are page,offset and len, can len be > PAGE_SIZE?

2. The book "Linux Kernel Development" discusses that the representing
the bio operation as an array of bio vecs is useful for RAID drivers
as the bio can be split. I don't understand how splitting of a bio can
help in RAID behavior? the "scatter" in scatter-gather means data
scatter across memory. What has this got to do with splitting of data
across disks?

Thanks!
-Joel

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to