[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220624012542.1384858-1-lizhijian@fujitsu.com>
Date: Fri, 24 Jun 2022 09:25:42 +0800
From: Li Zhijian <lizhijian@...itsu.com>
To: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
<linux-scsi@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, Li Zhijian <lizhijian@...itsu.com>
Subject: [PATCH] scsi: Enlarge log buffer length to 256
scsi_report_sense() is possble to print messages exceeding 128 bytes:
[ 475.156955] sd 9:0:0:0: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatical
Signed-off-by: Li Zhijian <lizhijian@...itsu.com>
---
drivers/scsi/scsi_logging.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi_logging.c b/drivers/scsi/scsi_logging.c
index b02af340c2d3..edc3fe8c7e0f 100644
--- a/drivers/scsi/scsi_logging.c
+++ b/drivers/scsi/scsi_logging.c
@@ -17,7 +17,7 @@
static char *scsi_log_reserve_buffer(size_t *len)
{
- *len = 128;
+ *len = 256;
return kmalloc(*len, GFP_ATOMIC);
}
--
2.31.1
Powered by blists - more mailing lists