From patchwork Fri Jun 24 01:25:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li \(Fujitsu\)" X-Patchwork-Id: 585395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6761C433EF for ; Fri, 24 Jun 2022 01:19:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiFXBTC (ORCPT ); Thu, 23 Jun 2022 21:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230317AbiFXBS7 (ORCPT ); Thu, 23 Jun 2022 21:18:59 -0400 Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06C8D60C4B; Thu, 23 Jun 2022 18:18:51 -0700 (PDT) IronPort-Data: A9a23:pbAfHaljoqFHtTYw4PSAE1Do5gxsJERdPkR7XQ2eYbTBsI5bp2EAnTMaW2iEOK6DZTH3L9kiYNu+oRhV6JXdmINnTgM/+CA2RRqmi+KfW43BcR2Y0wB+jyH7ZBs+qZ1YM7EsFehsJpPnjkrrYuiJQUVUj/nSHOKmULecY0ideCc/IMsfoUM68wIGqt4w6TSJK1vlVeLa+6UzCnf8s9JHGj58B5a4lf9alK+aVAX0EbAJTasjUFf2zxH5BX+ETE27ByOQroJ8RoZWSwtfpYxV8F81/z91Yj+kur39NEMXQL/OJhXIgX1TM0SgqkEa4HVsjeBgb7xBAatUo2zhc9RZzNRftZ2ySA4vFqPRmuUBSAQeGCZ7VUFD0OadfCbj75POkyUqdFOpmZ2CFnoeP4Aa8M5zAGdT5boZIjVLZReG78qzyainS+8qnsk/IdPwMYU3vWtpxjXUS/0hRPjrR6TM+M8d3zoqgM1KNejRatBfajd1ahnEJRpVNT8/DJM4gfftnXLkchVGp1+P46k6+W7eyEp2yreFDTZ/UrRmXu0MxgDB+D2ApD+/X3kn2BWk4WLt2hqRaiXnxEsXgL4vKYA= IronPort-HdrOrdr: A9a23:5LRtAat2LEvGqXJKbbGtEzcB7skDntV00zEX/kB9WHVpmszxra6TdZMgpHvJYVcqKRYdcL+7WJVoLUmxyXcX2/h1AV7BZniEhILAFugLhuGO/9SKIUzDH4BmupuIC5IOauEYE2IK9vrS0U2pFco62tmb/OSNjefa9X1kSgZncMhbnn5EIzfeAktrXxNHGJZ8MJKd4/BMrz2mdW9SQd+8AhA+LpD+juyOhJT7egQHGhJizAGPiAmj4Ln8HwPd/jp2aUIo/Ysf X-IronPort-AV: E=Sophos;i="5.88,333,1635177600"; d="scan'208";a="125646754" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 24 Jun 2022 09:18:51 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id CDBF54D1719F; Fri, 24 Jun 2022 09:18:48 +0800 (CST) Received: from G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Jun 2022 09:18:48 +0800 Received: from localhost.localdomain (10.167.225.141) by G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Fri, 24 Jun 2022 09:18:48 +0800 From: Li Zhijian To: "James E.J. Bottomley" , "Martin K. Petersen" , CC: , Li Zhijian Subject: [PATCH] scsi: Enlarge log buffer length to 256 Date: Fri, 24 Jun 2022 09:25:42 +0800 Message-ID: <20220624012542.1384858-1-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-yoursite-MailScanner-ID: CDBF54D1719F.AF85B X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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 --- 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); }