diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-12-06 11:41:22 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-10 08:30:38 -0700 |
commit | 6f75723190d88e1319bea623bfe0292bf3917965 (patch) | |
tree | 153b2c344577a6b14ab51726f3aa4ae11934795b /drivers/md/dm-core.h | |
parent | e016b78201a2d9ff40f3f0da072292689af24c7f (diff) | |
download | linux-6f75723190d88e1319bea623bfe0292bf3917965.tar.gz linux-6f75723190d88e1319bea623bfe0292bf3917965.tar.bz2 linux-6f75723190d88e1319bea623bfe0292bf3917965.zip |
dm: remove the pending IO accounting
Remove the "pending" atomic counters, that duplicate block-core's
in_flight counters, and update md_in_flight() to look at percpu
in_flight counters.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r-- | drivers/md/dm-core.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h index 224d44503a06..6fe883fac471 100644 --- a/drivers/md/dm-core.h +++ b/drivers/md/dm-core.h @@ -65,7 +65,6 @@ struct mapped_device { */ struct work_struct work; wait_queue_head_t wait; - atomic_t pending[2]; spinlock_t deferred_lock; struct bio_list deferred; @@ -119,7 +118,6 @@ struct mapped_device { struct srcu_struct io_barrier; }; -int md_in_flight(struct mapped_device *md); void disable_write_same(struct mapped_device *md); void disable_write_zeroes(struct mapped_device *md); |