OSDN Git Service

xfs: ratelimit xfs_buf_ioerror_alert messages
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Feb 2020 15:34:47 +0000 (07:34 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:51 +0000 (20:55 -0800)
commit13b1f811b14e084579aeb4de89e59a2942d2c2d8
tree96469ce4d15672390715db3eba51de11b7f3a1f6
parentba8adad5d036733d240fa8a8f4d055f3d4490562
xfs: ratelimit xfs_buf_ioerror_alert messages

Use printk_ratelimit() to limit the amount of messages printed from
xfs_buf_ioerror_alert.  Without that a failing device causes a large
number of errors that doesn't really help debugging the underling
issue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_buf.c