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
69d46f90
Commit
69d46f90
authored
Dec 18, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: fix an rcu usage bug
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
a36d3685
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/bcachefs/io.c
fs/bcachefs/io.c
+2
-1
No files found.
fs/bcachefs/io.c
View file @
69d46f90
...
@@ -967,6 +967,7 @@ void bch2_write(struct closure *cl)
...
@@ -967,6 +967,7 @@ void bch2_write(struct closure *cl)
struct
promote_op
{
struct
promote_op
{
struct
closure
cl
;
struct
closure
cl
;
struct
rcu_head
rcu
;
u64
start_time
;
u64
start_time
;
struct
rhash_head
hash
;
struct
rhash_head
hash
;
...
@@ -1020,7 +1021,7 @@ static void promote_free(struct bch_fs *c, struct promote_op *op)
...
@@ -1020,7 +1021,7 @@ static void promote_free(struct bch_fs *c, struct promote_op *op)
bch_promote_params
);
bch_promote_params
);
BUG_ON
(
ret
);
BUG_ON
(
ret
);
percpu_ref_put
(
&
c
->
writes
);
percpu_ref_put
(
&
c
->
writes
);
kfree
(
op
);
kfree
_rcu
(
op
,
rcu
);
}
}
static
void
promote_done
(
struct
closure
*
cl
)
static
void
promote_done
(
struct
closure
*
cl
)
...
...
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