diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-08-06 14:49:14 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-11 08:33:31 -0400 |
commit | 1badcfbd7febd33f71fc02bda9112bd25e9c294b (patch) | |
tree | b0c769f072f92a0dd197d2dac7512057397fe137 /block/blk-iopoll.c | |
parent | 5e605b64a183a6c0e84cdb99a6f8acb1f8200437 (diff) |
block: fix long lines in block/blk-iopoll.c
Note sure why they happened in the first place, probably some bad
terminal setting.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-iopoll.c')
-rw-r--r-- | block/blk-iopoll.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c index 566db1e7c1c..df6f192c9f6 100644 --- a/block/blk-iopoll.c +++ b/block/blk-iopoll.c | |||
@@ -24,9 +24,9 @@ static DEFINE_PER_CPU(struct list_head, blk_cpu_iopoll); | |||
24 | * @iop: The parent iopoll structure | 24 | * @iop: The parent iopoll structure |
25 | * | 25 | * |
26 | * Description: | 26 | * Description: |
27 | * Add this blk_iopoll structure to the pending poll list and trigger the raise | 27 | * Add this blk_iopoll structure to the pending poll list and trigger the |
28 | * of the blk iopoll softirq. The driver must already have gotten a succesful | 28 | * raise of the blk iopoll softirq. The driver must already have gotten a |
29 | * return from blk_iopoll_sched_prep() before calling this. | 29 | * succesful return from blk_iopoll_sched_prep() before calling this. |
30 | **/ | 30 | **/ |
31 | void blk_iopoll_sched(struct blk_iopoll *iop) | 31 | void blk_iopoll_sched(struct blk_iopoll *iop) |
32 | { | 32 | { |
@@ -44,7 +44,8 @@ EXPORT_SYMBOL(blk_iopoll_sched); | |||
44 | * @iop: The parent iopoll structure | 44 | * @iop: The parent iopoll structure |
45 | * | 45 | * |
46 | * Description: | 46 | * Description: |
47 | * See blk_iopoll_complete(). This function must be called with interrupts disabled. | 47 | * See blk_iopoll_complete(). This function must be called with interrupts |
48 | * disabled. | ||
48 | **/ | 49 | **/ |
49 | void __blk_iopoll_complete(struct blk_iopoll *iop) | 50 | void __blk_iopoll_complete(struct blk_iopoll *iop) |
50 | { | 51 | { |
@@ -59,9 +60,10 @@ EXPORT_SYMBOL(__blk_iopoll_complete); | |||
59 | * @iop: The parent iopoll structure | 60 | * @iop: The parent iopoll structure |
60 | * | 61 | * |
61 | * Description: | 62 | * Description: |
62 | * If a driver consumes less than the assigned budget in its run of the iopoll | 63 | * If a driver consumes less than the assigned budget in its run of the |
63 | * handler, it'll end the polled mode by calling this function. The iopoll handler | 64 | * iopoll handler, it'll end the polled mode by calling this function. The |
64 | * will not be invoked again before blk_iopoll_sched_prep() is called. | 65 | * iopoll handler will not be invoked again before blk_iopoll_sched_prep() |
66 | * is called. | ||
65 | **/ | 67 | **/ |
66 | void blk_iopoll_complete(struct blk_iopoll *iopoll) | 68 | void blk_iopoll_complete(struct blk_iopoll *iopoll) |
67 | { | 69 | { |
@@ -151,13 +153,13 @@ EXPORT_SYMBOL(blk_iopoll_disable); | |||
151 | * @iop: The parent iopoll structure | 153 | * @iop: The parent iopoll structure |
152 | * | 154 | * |
153 | * Description: | 155 | * Description: |
154 | * Enable iopoll on this @iop. Note that the handler run will not be scheduled, it | 156 | * Enable iopoll on this @iop. Note that the handler run will not be |
155 | * will only mark it as active. | 157 | * scheduled, it will only mark it as active. |
156 | **/ | 158 | **/ |
157 | void blk_iopoll_enable(struct blk_iopoll *iop) | 159 | void blk_iopoll_enable(struct blk_iopoll *iop) |
158 | { | 160 | { |
159 | BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state)); | 161 | BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state)); |
160 | smp_mb__before_clear_bit(); | 162 | smp_mb__before_clear_bit(); |
161 | clear_bit_unlock(IOPOLL_F_SCHED, &iop->state); | 163 | clear_bit_unlock(IOPOLL_F_SCHED, &iop->state); |
162 | } | 164 | } |
163 | EXPORT_SYMBOL(blk_iopoll_enable); | 165 | EXPORT_SYMBOL(blk_iopoll_enable); |
@@ -169,8 +171,8 @@ EXPORT_SYMBOL(blk_iopoll_enable); | |||
169 | * @poll_fn: The handler to invoke | 171 | * @poll_fn: The handler to invoke |
170 | * | 172 | * |
171 | * Description: | 173 | * Description: |
172 | * Initialize this blk_iopoll structure. Before being actively used, the driver | 174 | * Initialize this blk_iopoll structure. Before being actively used, the |
173 | * must call blk_iopoll_enable(). | 175 | * driver must call blk_iopoll_enable(). |
174 | **/ | 176 | **/ |
175 | void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn) | 177 | void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn) |
176 | { | 178 | { |