aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-08-06 14:49:14 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-09-11 08:33:31 -0400
commit1badcfbd7febd33f71fc02bda9112bd25e9c294b (patch)
treeb0c769f072f92a0dd197d2dac7512057397fe137 /block
parent5e605b64a183a6c0e84cdb99a6f8acb1f8200437 (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')
-rw-r--r--block/blk-iopoll.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c
index 566db1e7c1c7..df6f192c9f67 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 **/
31void blk_iopoll_sched(struct blk_iopoll *iop) 31void 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 **/
49void __blk_iopoll_complete(struct blk_iopoll *iop) 50void __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 **/
66void blk_iopoll_complete(struct blk_iopoll *iopoll) 68void 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 **/
157void blk_iopoll_enable(struct blk_iopoll *iop) 159void 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}
163EXPORT_SYMBOL(blk_iopoll_enable); 165EXPORT_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 **/
175void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn) 177void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn)
176{ 178{