]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libata: use WARN_ON_ONCE on hot paths
authorTejun Heo <tj@kernel.org>
Fri, 9 Jan 2009 10:19:14 +0000 (19:19 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Jan 2009 19:54:22 +0000 (11:54 -0800)
commitefcb3cf7f00c3c424db012380a8a974c2676a3c8
treeeaff0a3d6fed469629b81e8781ac80ca7c75eec1
parent43529c97122f2c851126447963eedcb8cba74fbe
libata: use WARN_ON_ONCE on hot paths

Convert WARN_ON() on command issue/completion paths to WARN_ON_ONCE()
so that libata doesn't spam the machine even when one of those
conditions triggers repeatedly.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/ata/libata-core.c
drivers/ata/libata-sff.c