Commit 2f6c55fc authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[S390] dasd slab cache alignment.

The dasd_page_cache should return page addresses and therefore the
cache must be created with an alignment of PAGE_SIZE.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent d0710c7c
...@@ -264,8 +264,9 @@ dasd_parse_keyword( char *parsestring ) { ...@@ -264,8 +264,9 @@ dasd_parse_keyword( char *parsestring ) {
if (dasd_page_cache) if (dasd_page_cache)
return residual_str; return residual_str;
dasd_page_cache = dasd_page_cache =
kmem_cache_create("dasd_page_cache", PAGE_SIZE, 0, kmem_cache_create("dasd_page_cache", PAGE_SIZE,
SLAB_CACHE_DMA, NULL, NULL ); PAGE_SIZE, SLAB_CACHE_DMA,
NULL, NULL );
if (!dasd_page_cache) if (!dasd_page_cache)
MESSAGE(KERN_WARNING, "%s", "Failed to create slab, " MESSAGE(KERN_WARNING, "%s", "Failed to create slab, "
"fixed buffer mode disabled."); "fixed buffer mode disabled.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment