diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 11:56:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 11:56:39 -0400 |
commit | b612a0553714c6b9744ad0d03f10cac78f3a84b1 (patch) | |
tree | 9dfb5cb5d13c187ff1f54448f8441512203625d0 /kernel/sched.c | |
parent | 52b0ace7dfe8f70350218017a95d7cab1eb41fbb (diff) | |
parent | 2a8e5e3637e2fc058798f5d3626f525729ffaaaf (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
ceph: clean up on forwarded aborted mds request
ceph: fix leak of osd authorizer
ceph: close out mds, osd connections before stopping auth
ceph: make lease code DN specific
fs/ceph: Use ERR_CAST
ceph: renew auth tickets before they expire
ceph: do not resend mon requests on auth ticket renewal
ceph: removed duplicated #includes
ceph: avoid possible null dereference
ceph: make mds requests killable, not interruptible
sched: add wait_for_completion_killable_timeout
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 15b93f617fd7..d48408142503 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4054,6 +4054,23 @@ int __sched wait_for_completion_killable(struct completion *x) | |||
4054 | EXPORT_SYMBOL(wait_for_completion_killable); | 4054 | EXPORT_SYMBOL(wait_for_completion_killable); |
4055 | 4055 | ||
4056 | /** | 4056 | /** |
4057 | * wait_for_completion_killable_timeout: - waits for completion of a task (w/(to,killable)) | ||
4058 | * @x: holds the state of this particular completion | ||
4059 | * @timeout: timeout value in jiffies | ||
4060 | * | ||
4061 | * This waits for either a completion of a specific task to be | ||
4062 | * signaled or for a specified timeout to expire. It can be | ||
4063 | * interrupted by a kill signal. The timeout is in jiffies. | ||
4064 | */ | ||
4065 | unsigned long __sched | ||
4066 | wait_for_completion_killable_timeout(struct completion *x, | ||
4067 | unsigned long timeout) | ||
4068 | { | ||
4069 | return wait_for_common(x, timeout, TASK_KILLABLE); | ||
4070 | } | ||
4071 | EXPORT_SYMBOL(wait_for_completion_killable_timeout); | ||
4072 | |||
4073 | /** | ||
4057 | * try_wait_for_completion - try to decrement a completion without blocking | 4074 | * try_wait_for_completion - try to decrement a completion without blocking |
4058 | * @x: completion structure | 4075 | * @x: completion structure |
4059 | * | 4076 | * |