[PATCH] fs/buffer.c: dump more info for __getblk_gfp() stall problem
From: Tetsuo Handa
Date: Wed Jan 02 2019 - 11:03:35 EST
We need to dump more variables on top of
"fs/buffer.c: add debug print for __getblk_gfp() stall problem".
Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
Cc: Jan Kara <jack@xxxxxxx>
---
fs/buffer.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/buffer.c b/fs/buffer.c
index 580fda0..a50acac 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1066,9 +1066,14 @@ static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size)
#ifdef CONFIG_DEBUG_AID_FOR_SYZBOT
if (!time_after(jiffies, current->getblk_stamp + 3 * HZ))
continue;
- printk(KERN_ERR "%s(%u): getblk(): executed=%x bh_count=%d bh_state=%lx\n",
+ printk(KERN_ERR "%s(%u): getblk(): executed=%x bh_count=%d bh_state=%lx "
+ "bdev_super_blocksize=%lu size=%u "
+ "bdev_super_blocksize_bits=%u bdev_inode_blkbits=%u\n",
current->comm, current->pid, current->getblk_executed,
- current->getblk_bh_count, current->getblk_bh_state);
+ current->getblk_bh_count, current->getblk_bh_state,
+ bdev->bd_super->s_blocksize, size,
+ bdev->bd_super->s_blocksize_bits,
+ bdev->bd_inode->i_blkbits);
current->getblk_executed = 0;
current->getblk_bh_count = 0;
current->getblk_bh_state = 0;
--
1.8.3.1