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
dcd880ed
Commit
dcd880ed
authored
Aug 23, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: Remove rwlocks BUG_ON and useless read_depth check
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
2763510c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
kernel/rt.c
kernel/rt.c
+2
-4
No files found.
kernel/rt.c
View file @
dcd880ed
...
...
@@ -206,7 +206,7 @@ int __lockfunc rt_read_trylock(rwlock_t *rwlock)
/*
* recursive read locks succeed when current owns the lock
*/
if
(
rt_mutex_real_owner
(
lock
)
!=
current
||
!
rwlock
->
read_depth
)
if
(
rt_mutex_real_owner
(
lock
)
!=
current
)
ret
=
rt_mutex_trylock
(
lock
);
if
(
ret
)
{
...
...
@@ -234,7 +234,7 @@ void __lockfunc rt_read_lock(rwlock_t *rwlock)
/*
* recursive read locks succeed when current owns the lock
*/
if
(
rt_mutex_real_owner
(
lock
)
!=
current
||
!
rwlock
->
read_depth
)
if
(
rt_mutex_real_owner
(
lock
)
!=
current
)
__rt_spin_lock
(
lock
);
rwlock
->
read_depth
++
;
}
...
...
@@ -253,8 +253,6 @@ void __lockfunc rt_read_unlock(rwlock_t *rwlock)
{
rwlock_release
(
&
rwlock
->
dep_map
,
1
,
_RET_IP_
);
BUG_ON
(
rwlock
->
read_depth
<=
0
);
/* Release the lock only when read_depth is down to 0 */
if
(
--
rwlock
->
read_depth
==
0
)
__rt_spin_unlock
(
&
rwlock
->
lock
);
...
...
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