]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: more info from kmem deadlocks and high-level error msgs
authorEric Sandeen <sandeen@redhat.com>
Mon, 12 Oct 2015 05:04:45 +0000 (16:04 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 12 Oct 2015 05:04:45 +0000 (16:04 +1100)
commit5253c67ca389b3d7c4d12c9e84d84be2c97bbf0f
tree34beacf9cf2facf6251ef86bce93753ba65e498a
parentc46c391c7f1f8a2605dfb446a145d45c66964765
xfs: more info from kmem deadlocks and high-level error msgs

In an effort to get more useful out of "possible memory
allocation deadlock" messages, print the size of the
requested allocation, and dump the stack if the xfs error
level is tuned high.

The stack dump is implemented in define_xfs_printk_level()
for error levels >= LOGLEVEL_ERR, partly because it
seems generically useful, and also because kmem.c has
no knowledge of xfs error level tunables or other such bits,
it's very kmem-specific.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/kmem.c
fs/xfs/xfs_message.c