Revert "Fix disk utilization for md/dm slaves"
authorJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 17:39:26 +0000 (19:39 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 17:39:26 +0000 (19:39 +0200)
This reverts commit f03f8e473b7c8a5c4ed2de0b99717cf75521bf69.

diskutil.c

index ac2f006..e90096b 100644 (file)
@@ -236,10 +236,8 @@ static void find_add_disk_slaves(struct thread_data *td, char *path,
 
                /* Should probably use an assert here. slavedu should
                 * always be present at this point. */
-               if (slavedu) {
-                       slavedu->users++;
+               if (slavedu)
                        flist_add_tail(&slavedu->slavelist, &masterdu->slaves);
-               }
        }
 
        closedir(dirhandle);
@@ -545,7 +543,6 @@ void show_disk_util(void)
        flist_for_each_safe(entry, next, &disk_list) {
                flist_del(entry);
                du = flist_entry(entry, struct disk_util, list);
-               du->users--;
                disk_util_free(du);
        }
 }