On 06/27/2010 06:29 PM, James Bottomley wrote:
May I ask a silly question? Why the dynamic allocation?
Why not have a const-static single global page at the block-layer somewhere
that will be used for all discard-type operations and be done with it once and
for all. A single page can be used for any size bio , any number of concurrent
discards, any ZERO needed operation. It can also be used by other operations
like padding and others. In fact isn't there one for the libsata padding?
(It could be dynamical allocated on first use for embedded system)
just my $0.017