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
a9251281
Commit
a9251281
authored
Mar 08, 2022
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm thin: use dm_submit_bio_remap
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
0a8e9599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/md/dm-thin.c
drivers/md/dm-thin.c
+3
-2
No files found.
drivers/md/dm-thin.c
View file @
a9251281
...
...
@@ -755,7 +755,7 @@ static void issue(struct thin_c *tc, struct bio *bio)
struct
pool
*
pool
=
tc
->
pool
;
if
(
!
bio_triggers_commit
(
tc
,
bio
))
{
submit_bio_noacct
(
bio
);
dm_submit_bio_remap
(
bio
,
NULL
,
true
);
return
;
}
...
...
@@ -2383,7 +2383,7 @@ static void process_deferred_bios(struct pool *pool)
if
(
bio
->
bi_opf
&
REQ_PREFLUSH
)
bio_endio
(
bio
);
else
submit_bio_noacct
(
bio
);
dm_submit_bio_remap
(
bio
,
NULL
,
true
);
}
}
...
...
@@ -4231,6 +4231,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
ti
->
num_flush_bios
=
1
;
ti
->
flush_supported
=
true
;
ti
->
accounts_remapped_io
=
true
;
ti
->
per_io_data_size
=
sizeof
(
struct
dm_thin_endio_hook
);
/* In case the pool supports discards, pass them on. */
...
...
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