Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257379
b: refs/heads/master
c: 11b80f4
h: refs/heads/master
i:
  257377: 849b4bb
  257375: af62bae
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Jul 21, 2011
1 parent 8402a55 commit 216dc06
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd5fe6c5eb9c548d7f07fe8f89a150bb6705e8e3
refs/heads/master: 11b80f459adaf91a712f95e7734a17655a36bf30
10 changes: 0 additions & 10 deletions trunk/include/linux/rwsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,9 @@ extern void downgrade_write(struct rw_semaphore *sem);
*/
extern void down_read_nested(struct rw_semaphore *sem, int subclass);
extern void down_write_nested(struct rw_semaphore *sem, int subclass);
/*
* Take/release a lock when not the owner will release it.
*
* [ This API should be avoided as much as possible - the
* proper abstraction for this case is completions. ]
*/
extern void down_read_non_owner(struct rw_semaphore *sem);
extern void up_read_non_owner(struct rw_semaphore *sem);
#else
# define down_read_nested(sem, subclass) down_read(sem)
# define down_write_nested(sem, subclass) down_write(sem)
# define down_read_non_owner(sem) down_read(sem)
# define up_read_non_owner(sem) up_read(sem)
#endif

#endif /* _LINUX_RWSEM_H */
16 changes: 0 additions & 16 deletions trunk/kernel/rwsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@ void down_read_nested(struct rw_semaphore *sem, int subclass)

EXPORT_SYMBOL(down_read_nested);

void down_read_non_owner(struct rw_semaphore *sem)
{
might_sleep();

__down_read(sem);
}

EXPORT_SYMBOL(down_read_non_owner);

void down_write_nested(struct rw_semaphore *sem, int subclass)
{
might_sleep();
Expand All @@ -136,13 +127,6 @@ void down_write_nested(struct rw_semaphore *sem, int subclass)

EXPORT_SYMBOL(down_write_nested);

void up_read_non_owner(struct rw_semaphore *sem)
{
__up_read(sem);
}

EXPORT_SYMBOL(up_read_non_owner);

#endif


0 comments on commit 216dc06

Please sign in to comment.