From: phil Date: Tue, 11 Jan 2005 13:10:59 +0000 (+0000) Subject: We only really care about this at one place (NERSC, which uses x86_64), so X-Git-Tag: 1.3.4~200 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=f16056cae9a3dcc58a11e2a53336825dbe187066;p=fs%2Flustre-release.git We only really care about this at one place (NERSC, which uses x86_64), so do the reasonable thing and enable multi-frag only on non-HIGHMEM platforms, where there's no kmap-deadlock risk. --- diff --git a/lnet/klnds/socklnd/socklnd.h b/lnet/klnds/socklnd/socklnd.h index d25e132..7f08029 100644 --- a/lnet/klnds/socklnd/socklnd.h +++ b/lnet/klnds/socklnd/socklnd.h @@ -105,8 +105,14 @@ #define SOCKNAL_SINGLE_FRAG_TX 0 /* disable multi-fragment sends */ #define SOCKNAL_SINGLE_FRAG_RX 0 /* disable multi-fragment receives */ -#define SOCKNAL_RISK_KMAP_DEADLOCK 1 /* risk kmap deadlock on multi-frag I/O - * (backs off to single-frag if disabled) */ + +/* risk kmap deadlock on multi-frag I/O (backs off to single-frag if disabled). + * no risk if we're not running on a CONFIG_HIGHMEM platform. */ +#ifdef CONFIG_HIGHMEM +# define SOCKNAL_RISK_KMAP_DEADLOCK 0 +#else +# define SOCKNAL_RISK_KMAP_DEADLOCK 1 +#endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,72)) # define sk_allocation allocation