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
nexedi
linux
Commits
e3b4825b
Commit
e3b4825b
authored
Dec 12, 2013
by
Nicholas Swenson
Committed by
Kent Overstreet
Jan 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: bugfix - gc thread now gets woken when cache is full
Signed-off-by:
Nicholas Swenson
<
nks@daterainc.com
>
parent
3572324a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/md/bcache/request.c
drivers/md/bcache/request.c
+3
-3
No files found.
drivers/md/bcache/request.c
View file @
e3b4825b
...
@@ -354,14 +354,14 @@ static void bch_data_insert_start(struct closure *cl)
...
@@ -354,14 +354,14 @@ static void bch_data_insert_start(struct closure *cl)
struct
data_insert_op
*
op
=
container_of
(
cl
,
struct
data_insert_op
,
cl
);
struct
data_insert_op
*
op
=
container_of
(
cl
,
struct
data_insert_op
,
cl
);
struct
bio
*
bio
=
op
->
bio
,
*
n
;
struct
bio
*
bio
=
op
->
bio
,
*
n
;
if
(
op
->
bypass
)
return
bch_data_invalidate
(
cl
);
if
(
atomic_sub_return
(
bio_sectors
(
bio
),
&
op
->
c
->
sectors_to_gc
)
<
0
)
{
if
(
atomic_sub_return
(
bio_sectors
(
bio
),
&
op
->
c
->
sectors_to_gc
)
<
0
)
{
set_gc_sectors
(
op
->
c
);
set_gc_sectors
(
op
->
c
);
wake_up_gc
(
op
->
c
);
wake_up_gc
(
op
->
c
);
}
}
if
(
op
->
bypass
)
return
bch_data_invalidate
(
cl
);
/*
/*
* Journal writes are marked REQ_FLUSH; if the original write was a
* Journal writes are marked REQ_FLUSH; if the original write was a
* flush, it'll wait on the journal write.
* flush, it'll wait on the journal write.
...
...
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