block: fix comment in blk-iopoll.c

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Jens Axboe 2009-08-06 20:53:23 +02:00
parent 37867ae7c5
commit fca51d64c5
1 changed files with 6 additions and 3 deletions

View File

@ -115,9 +115,12 @@ static void blk_iopoll_softirq(struct softirq_action *h)
local_irq_disable(); local_irq_disable();
/* Drivers must not modify the NAPI state if they /*
* consume the entire weight. In such cases this code * Drivers must not modify the iopoll state, if they
* still "owns" the NAPI instance and therefore can * 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. * move the instance around on the list at-will.
*/ */
if (work >= weight) { if (work >= weight) {