]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fs/buffer.c: dump more info for __getblk_gfp() stall problem
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 31 Dec 2020 22:04:40 +0000 (22:04 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:04:40 +0000 (22:04 +0000)
We need to dump more variables on top of
"fs/buffer.c: add debug print for __getblk_gfp() stall problem".

Link: http://lkml.kernel.org/r/12239545-7d8a-820f-48ba-952e2e98a05c@i-love.sakura.ne.jp
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c

index 4292762f23141fc1de0869b388482aa960ecc78e..96c7604f69b36684ec5dff07cc21db02a8df331b 100644 (file)
@@ -1093,9 +1093,15 @@ __getblk_slow(struct block_device *bdev, sector_t block,
 #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=%ld size=%u bdev_super_blocksize_bits=%d bdev_inode_blkbits=%d\n",
                       current->comm, current->pid, current->getblk_executed,
-                      current->getblk_bh_count, current->getblk_bh_state);
+                      current->getblk_bh_count, current->getblk_bh_state,
+                      IS_ERR_OR_NULL(bdev->bd_super) ? -1L :
+                      bdev->bd_super->s_blocksize, size,
+                      IS_ERR_OR_NULL(bdev->bd_super) ? -1 :
+                      bdev->bd_super->s_blocksize_bits,
+                      IS_ERR_OR_NULL(bdev->bd_inode) ? -1 :
+                      bdev->bd_inode->i_blkbits);
                current->getblk_executed = 0;
                current->getblk_bh_count = 0;
                current->getblk_bh_state = 0;