]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] lpfc: lower stack use in lpfc_fc_frame_check
authorTomas Henzl <thenzl@redhat.com>
Wed, 22 Dec 2010 15:52:40 +0000 (16:52 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 3 Jan 2011 16:34:15 +0000 (10:34 -0600)
commit474ffb74c75ea9845860ffb24cdc127eda0d5657
treebc1c05ce907a66d029bec0ef5460deb13b929b54
parent41511704b678f7b101a76e58d6c6b7bbe2a9ad70
[SCSI] lpfc: lower stack use in lpfc_fc_frame_check

according to checkstack the lpfc_fc_frame_check occupies the first
place in stack usage:

make checkstack
objdump -d vmlinux $(find . -name '*.ko') | \
perl /root/rpmbuild/BUILD/kernel-2.6.32/linux-2.6.32.x86_64/scripts/checkstack.pl x86_64
0x000013f4 lpfc_fc_frame_check [lpfc]: 1936
...
This change makes the rctl_names static, thus not on stack.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/lpfc/lpfc_sli.c