summaryrefslogtreecommitdiff
path: root/block/blk-iopoll.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-08-06 20:53:23 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-09-11 14:33:32 +0200
commitfca51d64c5baf64604bc1edc5c5f0e7ed176322f (patch)
treed9662eea84a8be4555bad3f12f5dd2cb26305302 /block/blk-iopoll.c
parent37867ae7c549c58d44337e27738577ed8b7cd753 (diff)
downloadlinux-stable-fca51d64c5baf64604bc1edc5c5f0e7ed176322f.tar.gz
linux-stable-fca51d64c5baf64604bc1edc5c5f0e7ed176322f.tar.bz2
linux-stable-fca51d64c5baf64604bc1edc5c5f0e7ed176322f.zip
block: fix comment in blk-iopoll.c
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-iopoll.c')
-rw-r--r--block/blk-iopoll.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c
index 0671d4614b08..b9b32652292c 100644
--- a/block/blk-iopoll.c
+++ b/block/blk-iopoll.c
@@ -115,9 +115,12 @@ static void blk_iopoll_softirq(struct softirq_action *h)
local_irq_disable();
- /* Drivers must not modify the NAPI state if they
- * consume the entire weight. In such cases this code
- * still "owns" the NAPI instance and therefore can
+ /*
+ * Drivers must not modify the iopoll state, if they
+ * consume their assigned weight (or more, some drivers can't
+ * easily just stop processing, they have to complete an
+ * entire mask of commands).In such cases this code
+ * still "owns" the iopoll instance and therefore can
* move the instance around on the list at-will.
*/
if (work >= weight) {