]> err.no Git - linux-2.6/commitdiff
qeth: Remove usage of subsys.rwsem
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 Apr 2007 11:01:38 +0000 (13:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:31 +0000 (10:57 -0700)
the current driver tree contains the removal of subsys.rwsem.
Unfortunately, this breaks qeth. However, it should be no problem to
fix the walking of the devices for /proc/qeth:

No need to take subsys.rwsem during walking the devices,
driver_find_devices() should already suffice.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/s390/net/qeth_proc.c

index 81f805cc5ee7a3e2723952d00e0a502f43dc3ff2..89d56c8ecdd21600ba10099c7267f9083e28522f 100644 (file)
@@ -37,7 +37,6 @@ qeth_procfile_seq_start(struct seq_file *s, loff_t *offset)
        struct device *dev = NULL;
        loff_t nr = 0;
 
-       down_read(&qeth_ccwgroup_driver.driver.bus->subsys.rwsem);
        if (*offset == 0)
                return SEQ_START_TOKEN;
        while (1) {
@@ -53,7 +52,6 @@ qeth_procfile_seq_start(struct seq_file *s, loff_t *offset)
 static void
 qeth_procfile_seq_stop(struct seq_file *s, void* it)
 {
-       up_read(&qeth_ccwgroup_driver.driver.bus->subsys.rwsem);
 }
 
 static void *