Added HAVE_REQUEST_QUEUE_REQUEST_FN_ACTIVE macro
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 7 Jan 2015 15:03:24 +0000 (17:03 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 7 Jan 2015 15:03:24 +0000 (17:03 +0200)
Used by SRP backport

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4

index 776364e..9d77060 100644 (file)
@@ -412,6 +412,23 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if struct request_queue has request_fn_active])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/blkdev.h>
+       ],[
+               struct request_queue rq = {
+                       .request_fn_active = 0,
+               };
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_REQUEST_QUEUE_REQUEST_FN_ACTIVE, 1,
+                         [struct request_queue has request_fn_active])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if netdevice.h has select_queue_fallback_t])
        LB_LINUX_TRY_COMPILE([
                #include <linux/netdevice.h>