Skip to content

Commit 12e0036

Browse files
fenrus75torvalds
authored andcommitted
Use WARN() in block/
Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes part of the warning section for better reporting/collection. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 261c40c commit 12e0036

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎block/as-iosched.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ static void as_completed_request(struct request_queue *q, struct request *rq)
837837
WARN_ON(!list_empty(&rq->queuelist));
838838

839839
if (RQ_STATE(rq) != AS_RQ_REMOVED) {
840-
printk("rq->state %d\n", RQ_STATE(rq));
841-
WARN_ON(1);
840+
WARN(1, "rq->state %d\n", RQ_STATE(rq));
842841
goto out;
843842
}
844843

0 commit comments

Comments
 (0)