summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2022-04-16 02:08:23 +0200
committerMike Snitzer <snitzer@kernel.org>2022-05-05 23:31:36 +0200
commit9d20653fe84ebd772c3af71808e6a727603e0b71 (patch)
treedf8b5113bb8c33bb07caba8cd45ef868f8b542e5 /drivers/md/dm-core.h
parentdm: put all polled dm_io instances into a single list (diff)
downloadlinux-9d20653fe84ebd772c3af71808e6a727603e0b71.tar.xz
linux-9d20653fe84ebd772c3af71808e6a727603e0b71.zip
dm: simplify bio-based IO accounting further
Now that io splitting is recorded prior to, or during, ->map IO accounting can happen immediately rather than defer until after bio splitting in dm_split_and_process_bio(). Remove the DM_IO_START_ACCT flag and also remove dm_io's map_task member because there is no longer any need to wait for splitting to occur before accounting. Also move dm_io struct's 'flags' member to consolidate struct holes. Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r--drivers/md/dm-core.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h
index f3cfc7affd12..d21648a923ea 100644
--- a/drivers/md/dm-core.h
+++ b/drivers/md/dm-core.h
@@ -255,15 +255,12 @@ static inline bool dm_tio_is_normal(struct dm_target_io *tio)
#define DM_IO_MAGIC 19577
struct dm_io {
unsigned short magic;
-
+ blk_short_t flags;
spinlock_t lock;
unsigned long start_time;
void *data;
struct dm_io *next;
- struct task_struct *map_task;
struct dm_stats_aux stats_aux;
-
- blk_short_t flags;
blk_status_t status;
atomic_t io_count;
struct mapped_device *md;
@@ -281,7 +278,6 @@ struct dm_io {
* dm_io flags
*/
enum {
- DM_IO_START_ACCT,
DM_IO_ACCOUNTED,
DM_IO_WAS_SPLIT
};