]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/xfs/kmem.c
xfs: Print name and pid when memory allocation loops
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 12 Oct 2015 04:41:29 +0000 (15:41 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 12 Oct 2015 04:41:29 +0000 (15:41 +1100)
commit5bf97b1cb430a3a6da4341ae913299706ebc52f5
treedbbf0459334e68d36b27baeabe3d2c69a545ca77
parent1f93e4a96c9109378204c147b3eec0d0e8100fde
xfs: Print name and pid when memory allocation loops

This patch adds comm name and pid to warning messages printed by
kmem_alloc(), kmem_zone_alloc() and xfs_buf_allocate_memory().
This will help telling which memory allocations (e.g. kernel worker
threads, OOM victim tasks, neither) are stalling because these functions
are passing __GFP_NOWARN which suppresses not only backtrace but comm name
and pid.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/kmem.c
fs/xfs/xfs_buf.c