diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-06 02:26:01 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-06 10:17:33 -0400 |
commit | 7b6a8570e02a20d0b6cadb9689e4b2e6217c390c (patch) | |
tree | 9bf6640a97fc715dfce2f9957c620e3487517594 | |
parent | da22f0eea555baf9b0a84b52afe56db2052cfe8d (diff) |
bcache: Update continue_at() documentation
continue_at() doesn't have a return statement anymore.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/bcache/closure.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/bcache/closure.h b/drivers/md/bcache/closure.h index 1ec84ca81146..295b7e43f92c 100644 --- a/drivers/md/bcache/closure.h +++ b/drivers/md/bcache/closure.h | |||
@@ -312,8 +312,6 @@ static inline void closure_wake_up(struct closure_waitlist *list) | |||
312 | * been dropped with closure_put()), it will resume execution at @fn running out | 312 | * been dropped with closure_put()), it will resume execution at @fn running out |
313 | * of @wq (or, if @wq is NULL, @fn will be called by closure_put() directly). | 313 | * of @wq (or, if @wq is NULL, @fn will be called by closure_put() directly). |
314 | * | 314 | * |
315 | * NOTE: This macro expands to a return in the calling function! | ||
316 | * | ||
317 | * This is because after calling continue_at() you no longer have a ref on @cl, | 315 | * This is because after calling continue_at() you no longer have a ref on @cl, |
318 | * and whatever @cl owns may be freed out from under you - a running closure fn | 316 | * and whatever @cl owns may be freed out from under you - a running closure fn |
319 | * has a ref on its own closure which continue_at() drops. | 317 | * has a ref on its own closure which continue_at() drops. |
@@ -340,8 +338,6 @@ do { \ | |||
340 | * Causes @fn to be executed out of @cl, in @wq context (or called directly if | 338 | * Causes @fn to be executed out of @cl, in @wq context (or called directly if |
341 | * @wq is NULL). | 339 | * @wq is NULL). |
342 | * | 340 | * |
343 | * NOTE: like continue_at(), this macro expands to a return in the caller! | ||
344 | * | ||
345 | * The ref the caller of continue_at_nobarrier() had on @cl is now owned by @fn, | 341 | * The ref the caller of continue_at_nobarrier() had on @cl is now owned by @fn, |
346 | * thus it's not safe to touch anything protected by @cl after a | 342 | * thus it's not safe to touch anything protected by @cl after a |
347 | * continue_at_nobarrier(). | 343 | * continue_at_nobarrier(). |