Skip to content

Commit

Permalink
block: fix comment in blk-iopoll.c
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Sep 11, 2009
1 parent 37867ae commit fca51d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions block/blk-iopoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fca51d6

Please sign in to comment.