Skip to contentSkip to conversation

bio_vec as scatterlist.

DISCUSSION Evgeniy Polyakov 1 participant 1 message Jul 28, 2008 VFS

lore
Share & tools
lore
#0 lore raw

Hi Jens.

Why does bio has array of bio_vecs and not scatterlists?

There is no (or there is?) gain in memory usage, since most if not all block device drivers will have to create a scatterlist just to map bio_vec to hardware. Allocation of the single scatterlist for the whole bio in driver requires to wait for command completion, array of scatterlists eats memory, so...

Why bio_vec is not a scatterlist?

Signature · 1 line
	Evgeniy Polyakov