[patch 1/6] s390, block: disable fixed buffer mode when DMA supportis disabled
From: David Rientjes
Date: Tue May 24 2011 - 19:55:04 EST
dasd=fixedbuffers must create a SLAB_CACHE_DMA cache, which is not
possible if CONFIG_ZONE_DMA is disabled (a supported configuration
without 64-bit support).
If passed, emit a warning and disable fixed buffer mode.
Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
drivers/s390/block/dasd_devmap.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -282,6 +282,11 @@ dasd_parse_keyword( char *parsestring ) {
return residual_str;
}
if (strncmp("fixedbuffers", parsestring, length) == 0) {
+#ifndef CONFIG_ZONE_DMA
+ DBF_EVENT(DBF_WARNING, "%s", "DMA support disabled, "
+ "fixed buffer mode disabled.");
+ return residual_str;
+#endif
if (dasd_page_cache)
return residual_str;
dasd_page_cache =
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/