gc sc_lock. it is unused. ioctl commands can run concurrently now that
authordlg <dlg@openbsd.org>
Fri, 16 Jul 2010 01:23:11 +0000 (01:23 +0000)
committerdlg <dlg@openbsd.org>
Fri, 16 Jul 2010 01:23:11 +0000 (01:23 +0000)
iopools handle sleeping for ccbs.

sys/dev/pci/mpii.c

index a2cbc99..d07a910 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: mpii.c,v 1.33 2010/07/15 23:52:32 dlg Exp $   */
+/*     $OpenBSD: mpii.c,v 1.34 2010/07/16 01:23:11 dlg Exp $   */
 /*
  * Copyright (c) 2010 Mike Belopuhov <mkb@crypt.org.ru>
  * Copyright (c) 2009 James Giannoules
@@ -1843,8 +1843,6 @@ struct mpii_softc {
        /* scsi ioctl from sd device */
        int                     (*sc_ioctl)(struct device *, u_long, caddr_t);
 
-       struct rwlock           sc_lock;
-
        int                     sc_nsensors;
        struct ksensor          *sc_sensors;
        struct ksensordev       sc_sensordev;
@@ -2162,8 +2160,6 @@ mpii_attach(struct device *parent, struct device *self, void *aux)
                goto free_dev;
        }
 
-       rw_init(&sc->sc_lock, "mpii_lock");
-
        /* we should be good to go now, attach scsibus */
        sc->sc_link.adapter = &mpii_switch;
        sc->sc_link.adapter_softc = sc;