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
69596f55
Commit
69596f55
authored
Mar 08, 2022
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm cache: use dm_submit_bio_remap
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
b7f8dff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/md/dm-cache-target.c
drivers/md/dm-cache-target.c
+4
-3
No files found.
drivers/md/dm-cache-target.c
View file @
69596f55
...
...
@@ -803,7 +803,7 @@ static void accounted_complete(struct cache *cache, struct bio *bio)
static
void
accounted_request
(
struct
cache
*
cache
,
struct
bio
*
bio
)
{
accounted_begin
(
cache
,
bio
);
submit_bio_noacct
(
bio
);
dm_submit_bio_remap
(
bio
,
NULL
);
}
static
void
issue_op
(
struct
bio
*
bio
,
void
*
context
)
...
...
@@ -1708,7 +1708,7 @@ static bool process_bio(struct cache *cache, struct bio *bio)
bool
commit_needed
;
if
(
map_bio
(
cache
,
bio
,
get_bio_block
(
cache
,
bio
),
&
commit_needed
)
==
DM_MAPIO_REMAPPED
)
submit_bio_noacct
(
bio
);
dm_submit_bio_remap
(
bio
,
NULL
);
return
commit_needed
;
}
...
...
@@ -1774,7 +1774,7 @@ static bool process_discard_bio(struct cache *cache, struct bio *bio)
if
(
cache
->
features
.
discard_passdown
)
{
remap_to_origin
(
cache
,
bio
);
submit_bio_noacct
(
bio
);
dm_submit_bio_remap
(
bio
,
NULL
);
}
else
bio_endio
(
bio
);
...
...
@@ -2356,6 +2356,7 @@ static int cache_create(struct cache_args *ca, struct cache **result)
cache
->
ti
=
ca
->
ti
;
ti
->
private
=
cache
;
ti
->
accounts_remapped_io
=
true
;
ti
->
num_flush_bios
=
2
;
ti
->
flush_supported
=
true
;
...
...
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