[PARPORT] 2.2.17pre3 parport_share SMP locking

From: Andrea Arcangeli (andrea@suse.de)
Date: Sat Jun 17 2000 - 11:47:14 EDT

  • Next message: Paweł Krawczyk: "[PARPORT] Compaq Armada parallel"

    These ones doesn't seems to be necessary:

    @@ -336,14 +371,17 @@
             struct parport *port = dev->port;
             unsigned long flags;
     
    + read_lock_irqsave (&port->cad_lock, flags);
             if (port->cad == dev) {
    + read_unlock_irqrestore (&port->cad_lock, flags);
                     printk(KERN_INFO "%s: %s already owner\n",
                                dev->port->name,dev->name);
                     return 0;
             }
    + read_unlock_irqrestore (&port->cad_lock, flags);

    Andrea

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Sat Jun 17 2000 - 12:11:42 EDT