kernel - Register CAM swi as MPSAFE
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 28 Dec 2014 00:50:31 +0000 (16:50 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 28 Dec 2014 00:50:31 +0000 (16:50 -0800)
* Register the CAM swi as being MPSAFE, which should improve disk
  performance when multiple drives are being hit concurrently.

Reported-by: Venkatesh Srinivas
sys/bus/cam/cam_xpt.c

index 075113c..a9f968f 100644 (file)
@@ -1535,7 +1535,7 @@ xpt_init(void *dummy)
                kprintf("xpt_init: failed to create rescan thread\n");
        }
        /* Install our software interrupt handlers */
-       register_swi(SWI_CAMBIO, swi_cambio, NULL, "swi_cambio", NULL, -1);
+       register_swi_mp(SWI_CAMBIO, swi_cambio, NULL, "swi_cambio", NULL, -1);
 
        return (0);
 }