Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
d0dbce83
Commit
d0dbce83
authored
16 years ago
by
Nikita Danilov
Browse files
Options
Downloads
Patches
Plain Diff
add _nested() lock call variants for rwsemaphore.
parent
2c08b7a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcfs/include/libcfs/user-lock.h
+7
-7
7 additions, 7 deletions
libcfs/include/libcfs/user-lock.h
with
7 additions
and
7 deletions
libcfs/include/libcfs/user-lock.h
+
7
−
7
View file @
d0dbce83
...
...
@@ -72,7 +72,6 @@
*
* - spin_lock_init(x)
* - spin_lock(x)
* - spin_lock_nested(x, subclass)
* - spin_unlock(x)
* - spin_trylock(x)
*
...
...
@@ -91,7 +90,6 @@ typedef struct spin_lock spinlock_t;
void
spin_lock_init
(
spinlock_t
*
lock
);
void
spin_lock
(
spinlock_t
*
lock
);
void
spin_lock_nested
(
spinlock_t
*
lock
,
unsigned
int
subclass
);
void
spin_unlock
(
spinlock_t
*
lock
);
int
spin_trylock
(
spinlock_t
*
lock
);
void
spin_lock_bh_init
(
spinlock_t
*
lock
);
...
...
@@ -308,11 +306,6 @@ static inline int mutex_trylock(struct mutex *mutex)
return
1
;
}
static
inline
void
mutex_lock_nested
(
struct
mutex
*
mutex
,
unsigned
int
subclass
)
{
return
mutex_lock
(
mutex
);
}
static
inline
void
mutex_destroy
(
struct
mutex
*
lock
)
{
}
...
...
@@ -345,6 +338,13 @@ static inline void lockdep_set_class(void *lock, struct lock_class_key *key)
{
}
/* This has to be a macro, so that can be undefined in kernels that do not
* support lockdep. */
#define mutex_lock_nested(mutex, subclass) mutex_lock(mutex)
#define spin_lock_nested(lock, subclass) spin_lock(lock)
#define down_read_nested(lock, subclass) down_read(lock)
#define down_write_nested(lock, subclass) down_write(lock)
/* !__KERNEL__ */
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment