Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
fe221db4
Commit
fe221db4
authored
Mar 25, 2022
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm: mark various branches unlikely
Signed-off-by:
Mike Snitzer
<
snitzer@kernel.org
>
parent
3b03f7c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/md/dm.c
drivers/md/dm.c
+3
-3
No files found.
drivers/md/dm.c
View file @
fe221db4
...
@@ -991,7 +991,7 @@ static void clone_endio(struct bio *bio)
...
@@ -991,7 +991,7 @@ static void clone_endio(struct bio *bio)
disable_write_zeroes
(
md
);
disable_write_zeroes
(
md
);
}
}
if
(
blk_queue_is_zoned
(
q
))
if
(
unlikely
(
blk_queue_is_zoned
(
q
)
))
dm_zone_endio
(
io
,
bio
);
dm_zone_endio
(
io
,
bio
);
if
(
endio
)
{
if
(
endio
)
{
...
@@ -1288,7 +1288,7 @@ static void __map_bio(struct bio *clone)
...
@@ -1288,7 +1288,7 @@ static void __map_bio(struct bio *clone)
* on zoned target. In this case, dm_zone_map_bio() calls the target
* on zoned target. In this case, dm_zone_map_bio() calls the target
* map operation.
* map operation.
*/
*/
if
(
dm_emulate_zone_append
(
io
->
md
))
if
(
unlikely
(
dm_emulate_zone_append
(
io
->
md
)
))
r
=
dm_zone_map_bio
(
tio
);
r
=
dm_zone_map_bio
(
tio
);
else
else
r
=
ti
->
type
->
map
(
ti
,
clone
);
r
=
ti
->
type
->
map
(
ti
,
clone
);
...
@@ -1631,7 +1631,7 @@ static void dm_submit_bio(struct bio *bio)
...
@@ -1631,7 +1631,7 @@ static void dm_submit_bio(struct bio *bio)
* Use blk_queue_split() for abnormal IO (e.g. discard, writesame, etc)
* Use blk_queue_split() for abnormal IO (e.g. discard, writesame, etc)
* otherwise associated queue_limits won't be imposed.
* otherwise associated queue_limits won't be imposed.
*/
*/
if
(
is_abnormal_io
(
bio
))
if
(
unlikely
(
is_abnormal_io
(
bio
)
))
blk_queue_split
(
&
bio
);
blk_queue_split
(
&
bio
);
dm_split_and_process_bio
(
md
,
map
,
bio
);
dm_split_and_process_bio
(
md
,
map
,
bio
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment