mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
261c40c119
commit
12e0036818
1 changed files with 1 additions and 2 deletions
|
@ -837,8 +837,7 @@ static void as_completed_request(struct request_queue *q, struct request *rq)
|
|||
WARN_ON(!list_empty(&rq->queuelist));
|
||||
|
||||
if (RQ_STATE(rq) != AS_RQ_REMOVED) {
|
||||
printk("rq->state %d\n", RQ_STATE(rq));
|
||||
WARN_ON(1);
|
||||
WARN(1, "rq->state %d\n", RQ_STATE(rq));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue