]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] dasd: use GFP_DMA for fba private data allocation
authorStefan Haberland <stefan.haberland@de.ibm.com>
Thu, 17 Apr 2008 05:46:04 +0000 (07:46 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Apr 2008 05:46:58 +0000 (07:46 +0200)
allocating dasd_fba_private without GFP_DMA results in IO error
during read device characteristics of a FBA disk

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/block/dasd_fba.c

index d13ea05089a7c3e2e291034258e072675bef0464..116611583df8215ea1ec7ecc6f9d25987812b00d 100644 (file)
@@ -125,7 +125,8 @@ dasd_fba_check_characteristics(struct dasd_device *device)
 
        private = (struct dasd_fba_private *) device->private;
        if (private == NULL) {
-               private = kzalloc(sizeof(struct dasd_fba_private), GFP_KERNEL);
+               private = kzalloc(sizeof(struct dasd_fba_private),
+                                 GFP_KERNEL | GFP_DMA);
                if (private == NULL) {
                        DEV_MESSAGE(KERN_WARNING, device, "%s",
                                    "memory allocation failed for private "