[SCSI] bnx2i: Fixed the override of the error_mask module param
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / bnx2i / bnx2i_init.c
index 1a947f1b9729a571e3a07c0f94bdd9fe6d2b23de..4927cca733d397d395aae0d70bf2418d45623454 100644 (file)
@@ -49,11 +49,11 @@ module_param(en_tcp_dack, int, 0664);
 MODULE_PARM_DESC(en_tcp_dack, "Enable TCP Delayed ACK");
 
 unsigned int error_mask1 = 0x00;
-module_param(error_mask1, int, 0664);
+module_param(error_mask1, uint, 0664);
 MODULE_PARM_DESC(error_mask1, "Config FW iSCSI Error Mask #1");
 
 unsigned int error_mask2 = 0x00;
-module_param(error_mask2, int, 0664);
+module_param(error_mask2, uint, 0664);
 MODULE_PARM_DESC(error_mask2, "Config FW iSCSI Error Mask #2");
 
 unsigned int sq_size;
@@ -393,8 +393,9 @@ static void bnx2i_percpu_thread_create(unsigned int cpu)
 
        p = &per_cpu(bnx2i_percpu, cpu);
 
-       thread = kthread_create(bnx2i_percpu_io_thread, (void *)p,
-                               "bnx2i_thread/%d", cpu);
+       thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
+                                       cpu_to_node(cpu),
+                                       "bnx2i_thread/%d", cpu);
        /* bind thread to the cpu */
        if (likely(!IS_ERR(thread))) {
                kthread_bind(thread, cpu);