]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SCSI] ipr: Increase alignment boundary of command blocks
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 15 Mar 2012 02:20:12 +0000 (21:20 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 28 Mar 2012 14:06:50 +0000 (15:06 +0100)
The latest generation of ipr hardware performs best when command blocks
are aligned to a boundary equal to the size of the command block. Ensure
512 byte alignment, since this is the largest size command block we
can send.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ipr.c

index ada0af745a086bd0dba0f3476a1f1ddbf91e554f..e002cd466e9a916d24d6064012d0488c854cd63e 100644 (file)
@@ -8360,7 +8360,7 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
        int i;
 
        ioa_cfg->ipr_cmd_pool = pci_pool_create (IPR_NAME, ioa_cfg->pdev,
-                                                sizeof(struct ipr_cmnd), 16, 0);
+                                                sizeof(struct ipr_cmnd), 512, 0);
 
        if (!ioa_cfg->ipr_cmd_pool)
                return -ENOMEM;