summaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2022-03-26 00:20:45 +0300
committerMike Snitzer <snitzer@kernel.org>2022-05-06 00:31:34 +0300
commitfe221db4192cf6c5f6b0be59e09025b05418e226 (patch)
tree9ac0c183e0e0f4876c894dd5d2435701d4bad44f /drivers/md/dm.c
parent3b03f7c1242c754f0c474b37eec7d79107b9f375 (diff)
downloadlinux-fe221db4192cf6c5f6b0be59e09025b05418e226.tar.xz
dm: mark various branches unlikely
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index e6b6fe03dbcf..34d457cfcb36 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -991,7 +991,7 @@ static void clone_endio(struct bio *bio)
disable_write_zeroes(md);
}
- if (blk_queue_is_zoned(q))
+ if (unlikely(blk_queue_is_zoned(q)))
dm_zone_endio(io, bio);
if (endio) {
@@ -1288,7 +1288,7 @@ static void __map_bio(struct bio *clone)
* on zoned target. In this case, dm_zone_map_bio() calls the target
* map operation.
*/
- if (dm_emulate_zone_append(io->md))
+ if (unlikely(dm_emulate_zone_append(io->md)))
r = dm_zone_map_bio(tio);
else
r = ti->type->map(ti, clone);
@@ -1631,7 +1631,7 @@ static void dm_submit_bio(struct bio *bio)
* Use blk_queue_split() for abnormal IO (e.g. discard, writesame, etc)
* otherwise associated queue_limits won't be imposed.
*/
- if (is_abnormal_io(bio))
+ if (unlikely(is_abnormal_io(bio)))
blk_queue_split(&bio);
dm_split_and_process_bio(md, map, bio);