From e860c56bcd5a9788f474d5d6ae17bb4f00a3e013 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 13 Apr 2015 10:48:13 +0200 Subject: [PATCH] iscsi-scst: Suppress put_page_callback patch warnings The put_page_callback patch only improves performance on single-socket systems but not on systems with multiple CPU sockets. Hence do not print a warning if the put_page_callback patch has not been applied. Signed-off-by: Bart Van Assche --- iscsi-scst/kernel/iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index e77b72c08..0937aa76a 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -27,7 +27,7 @@ #include "iscsi.h" #include "digest.h" -#ifndef GENERATING_UPSTREAM_PATCH +#if 0 && !defined(GENERATING_UPSTREAM_PATCH) #if !defined(CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION) #warning Patch put_page_callback-.patch not applied on your \ kernel or CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION \ @@ -4129,7 +4129,7 @@ static int __init iscsi_init(void) goto out_destroy_mempool; } #else -#ifndef GENERATING_UPSTREAM_PATCH +#if 0 && !defined(GENERATING_UPSTREAM_PATCH) PRINT_WARNING("%s", "CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION " "not enabled in your kernel. ISCSI-SCST will be working with "