mfi(4): Add D_MPSAFE to the disk flags.
authorSascha Wildner <saw@online.de>
Sat, 16 Feb 2013 15:27:28 +0000 (16:27 +0100)
committerSascha Wildner <saw@online.de>
Sat, 16 Feb 2013 15:27:28 +0000 (16:27 +0100)
When porting it, I didn't know that this is indicated by the _absence_
of DISKFLAG_NEEDSGIANT.

Tested-by: ftigeot
sys/dev/raid/mfi/mfi_disk.c
sys/dev/raid/mfi/mfi_syspd.c

index b8447d3..8fb9790 100644 (file)
@@ -61,7 +61,7 @@ static d_strategy_t   mfi_disk_strategy;
 static d_dump_t                mfi_disk_dump;
 
 static struct dev_ops mfi_disk_ops = {
-       { "mfid", 0, D_DISK },
+       { "mfid", 0, D_DISK | D_MPSAFE },
        .d_open = mfi_disk_open,
        .d_close = mfi_disk_close,
        .d_strategy = mfi_disk_strategy,
index 011bab0..2524d2c 100644 (file)
@@ -67,7 +67,7 @@ static d_strategy_t   mfi_syspd_strategy;
 static d_dump_t                mfi_syspd_dump;
 
 static struct dev_ops mfi_syspd_ops = {
-       { "mfisyspd", 0, D_DISK },
+       { "mfisyspd", 0, D_DISK | D_MPSAFE },
        .d_open = mfi_syspd_open,
        .d_close = mfi_syspd_close,
        .d_strategy = mfi_syspd_strategy,