aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-09-28 07:27:55 +0200
committerJens Axboe <[email protected]>2021-10-18 06:17:02 -0600
commit8a3ee6778ef1a9a3bfd3b1134ea29e95d3568271 (patch)
tree5b63a2a19a556229414aac3d3bd3ee1be44b8a2f
parent322cff70d46c6c230a722684fd65ae6b5f57436e (diff)
block: print the current process in handle_bad_sector
Make the bad sector information a little more useful by printing current->comm to identify the caller. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--block/blk-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index d2c6caadef89..469550845244 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -655,8 +655,9 @@ static void handle_bad_sector(struct bio *bio, sector_t maxsector)
{
char b[BDEVNAME_SIZE];
- pr_info_ratelimited("attempt to access beyond end of device\n"
+ pr_info_ratelimited("%s: attempt to access beyond end of device\n"
"%s: rw=%d, want=%llu, limit=%llu\n",
+ current->comm,
bio_devname(bio, b), bio->bi_opf,
bio_end_sector(bio), maxsector);
}