]> err.no Git - linux-2.6/commit
[SCSI] atp870u: reduce huge stack usage
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 28 Jun 2006 05:01:28 +0000 (22:01 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 28 Jun 2006 16:43:20 +0000 (12:43 -0400)
commitdc6a78f1af10d28fb8c395034ae1e099b85c05b0
tree531357a95f9dfa3df48d87073d52e7a3d8e25668
parent87cf89866790a373edcf88c12b64d6d38560acdd
[SCSI] atp870u: reduce huge stack usage

The atp870u driver is the largest stack eater reported by checkstack
(on x86_864, allmodconfig).  This converts the offending function
to kmalloc+kfree struct atp_unit instead of allocating it on the stack.
Was:
0x0000164c atp870u_probe [atp870u]: 3176
Now:
0x0000164c atp870u_probe [atp870u]: 408

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/atp870u.c