Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a6a0763a
Commit
a6a0763a
authored
Mar 18, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix the exclusion for ioprio_set()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
12a05732
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
block/cfq-iosched.c
block/cfq-iosched.c
+13
-1
No files found.
block/cfq-iosched.c
View file @
a6a0763a
...
...
@@ -47,6 +47,8 @@ static int cfq_slice_idle = HZ / 100;
*/
static
const
int
cfq_max_depth
=
2
;
static
DEFINE_RWLOCK
(
cfq_exit_lock
);
/*
* for the hash of cfqq inside the cfqd
*/
...
...
@@ -1354,13 +1356,19 @@ static inline void changed_ioprio(struct cfq_io_context *cic)
*/
static
int
cfq_ioc_set_ioprio
(
struct
io_context
*
ioc
,
unsigned
int
ioprio
)
{
struct
cfq_io_context
*
cic
=
ioc
->
cic
;
struct
cfq_io_context
*
cic
;
write_lock
(
&
cfq_exit_lock
);
cic
=
ioc
->
cic
;
changed_ioprio
(
cic
);
list_for_each_entry
(
cic
,
&
cic
->
list
,
list
)
changed_ioprio
(
cic
);
write_unlock
(
&
cfq_exit_lock
);
return
0
;
}
...
...
@@ -1450,8 +1458,10 @@ cfq_get_io_context(struct cfq_data *cfqd, pid_t pid, gfp_t gfp_mask)
*/
cic
->
ioc
=
ioc
;
cic
->
key
=
cfqd
;
read_lock
(
&
cfq_exit_lock
);
ioc
->
set_ioprio
=
cfq_ioc_set_ioprio
;
ioc
->
cic
=
cic
;
read_unlock
(
&
cfq_exit_lock
);
}
else
{
struct
cfq_io_context
*
__cic
;
...
...
@@ -1487,7 +1497,9 @@ cfq_get_io_context(struct cfq_data *cfqd, pid_t pid, gfp_t gfp_mask)
__cic
->
ioc
=
ioc
;
__cic
->
key
=
cfqd
;
read_lock
(
&
cfq_exit_lock
);
list_add
(
&
__cic
->
list
,
&
cic
->
list
);
read_unlock
(
&
cfq_exit_lock
);
cic
=
__cic
;
}
...
...
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