All of lore.kernel.org
 help / color / mirror / Atom feed
* pktcdvd stack usage regression
@ 2006-02-09  2:09 Adrian Bunk
  2006-02-09  6:01 ` Peter Osterlund
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-02-09  2:09 UTC (permalink / raw)
  To: Phillip Susi; +Cc: linux-kernel, Peter Osterlund

Hi Phillip,

your recent patch "pktcdvd: Allow larger packets" changed 
PACKET_MAX_SIZE in the pktcdvd driver from 32 to 128.

Unfortunately, drivers/block/pktcdvd.c contains the following:

<--  snip  -->

...
static void pkt_start_write(struct pktcdvd_device *pd, struct 
packet_data *pkt)
{
        struct bio *bio;
        struct page *pages[PACKET_MAX_SIZE];
        int offsets[PACKET_MAX_SIZE];
...

<--  snip  -->

With PACKET_MAX_SIZE=128, this allocates more than 1 kB on the stack 
which is not acceptable considering that we might have only 4 kB stack 
altogether.

Please either fix this before 2.6.16 or ask Linus to revert commit 
5c55ac9bbca22ee134408f83de5f2bda3b1b2a53.

TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-10 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09  2:09 pktcdvd stack usage regression Adrian Bunk
2006-02-09  6:01 ` Peter Osterlund
2006-02-10 14:39   ` Adrian Bunk
2006-02-10 20:56     ` Peter Osterlund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.