dm.c (06eed768ea64c7a128582efda4f6107cb14ee962) dm.c (c4f512d255e3c4ade80a1d68ca816c1b11556a13)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
5 *
6 * This file is released under the GPL.
7 */
8

--- 583 unchanged lines hidden (view full) ---

592 io->orig_bio = bio;
593 io->md = md;
594 spin_lock_init(&io->lock);
595 io->start_time = jiffies;
596 io->flags = 0;
597 if (blk_queue_io_stat(md->queue))
598 dm_io_set_flag(io, DM_IO_BLK_STAT);
599
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
5 *
6 * This file is released under the GPL.
7 */
8

--- 583 unchanged lines hidden (view full) ---

592 io->orig_bio = bio;
593 io->md = md;
594 spin_lock_init(&io->lock);
595 io->start_time = jiffies;
596 io->flags = 0;
597 if (blk_queue_io_stat(md->queue))
598 dm_io_set_flag(io, DM_IO_BLK_STAT);
599
600 if (static_branch_unlikely(&stats_enabled))
600 if (static_branch_unlikely(&stats_enabled) &&
601 unlikely(dm_stats_used(&md->stats)))
601 dm_stats_record_start(&md->stats, &io->stats_aux);
602
603 return io;
604}
605
606static void free_io(struct dm_io *io)
607{
608 bio_put(&io->tio.clone);

--- 2819 unchanged lines hidden ---
602 dm_stats_record_start(&md->stats, &io->stats_aux);
603
604 return io;
605}
606
607static void free_io(struct dm_io *io)
608{
609 bio_put(&io->tio.clone);

--- 2819 unchanged lines hidden ---