Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6396115iog; Thu, 23 Jun 2022 18:50:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tluHWoQ3Ha7CX38L3h+VYduxYE5MOr/aCv6wIqqCnZSrt8IFSdV2aVREEZFwp68BQb5J52 X-Received: by 2002:a17:902:c2d5:b0:16a:1263:9313 with SMTP id c21-20020a170902c2d500b0016a12639313mr28655432pla.138.1656035411971; Thu, 23 Jun 2022 18:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656035411; cv=none; d=google.com; s=arc-20160816; b=WxdkVd8vI3zZKTHwgfdiEJj5rllj7vdIHpFzAQeZeikYJm38gzftyJ6ai2OHc7LM/v CDtvTrGOc/faaHe8X7AhIlJ/aiAbUuQz5qHA7ZlZUEBVPiOzwrxjYcTDtAEL5HtYkpUI PDxl2/gh7HyeB59PmtfTDHydyPbJwJx+uXk1D3+3N5qp/E5XO3T8RQyO+Exmgi6d01+c tYB3kEkLkctQGK3SqghDw9sHT30xKmZlRiAQpP7livf+YvvYcweUqVn55zYeJT77v3Du kHZHfC6ysdTjSvd+XmSnqRJOz+NAWssj6CZDmYF9qK4G5f1A21tcvM6K9+TPFPYl5FPF W8zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-hdrordr:ironport-data; bh=yqJhMpXmq+7RuIUX/HqfpBnUKGugUC5I7RBOdh+4VVM=; b=zZC83GLYbanvf5PJyfRR1OvNqS430irLPnAlx2SQxOKYVguLWrlkNz+ctzk/jFMoNJ FPvN8xwgzxwF8YWUsjkywyeg4/tMvQrTCJoJm3nIFFw9McdDj4u74UqX1irbxykuGKbi sJUjOrekJC+YFfU372NNhoyM+RcNjqaxyAXQIUbLg3aB8b+Si4y04cBoRYyQuPx6R9Ea pwIaBMmam4JwqxyqzNiKaeuxlLfhbW9hLXabmVWELoBzZj9sSFOUmDeGmCsmnlVf6mvI pOxvvUeO9pzufiz515hzn3Q1JzCWeYchEUhZ3M3cxlUNEfZetqYEyp03DoRec8pkaeIB f8Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a170903018600b0016a5384072asi1014952plg.138.2022.06.23.18.49.37; Thu, 23 Jun 2022 18:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbiFXBTC (ORCPT + 99 others); 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: =?us-ascii?q?A9a23=3ApbAfHaljoqFHtTYw4PSAE1Do5gxsJERdPkR7XQ2?= =?us-ascii?q?eYbTBsI5bp2EAnTMaW2iEOK6DZTH3L9kiYNu+oRhV6JXdmINnTgM/+CA2RRqmi?= =?us-ascii?q?+KfW43BcR2Y0wB+jyH7ZBs+qZ1YM7EsFehsJpPnjkrrYuiJQUVUj/nSHOKmULe?= =?us-ascii?q?cY0ideCc/IMsfoUM68wIGqt4w6TSJK1vlVeLa+6UzCnf8s9JHGj58B5a4lf9al?= =?us-ascii?q?K+aVAX0EbAJTasjUFf2zxH5BX+ETE27ByOQroJ8RoZWSwtfpYxV8F81/z91Yj+?= =?us-ascii?q?kur39NEMXQL/OJhXIgX1TM0SgqkEa4HVsjeBgb7xBAatUo2zhc9RZzNRftZ2yS?= =?us-ascii?q?A4vFqPRmuUBSAQeGCZ7VUFD0OadfCbj75POkyUqdFOpmZ2CFnoeP4Aa8M5zAGd?= =?us-ascii?q?T5boZIjVLZReG78qzyainS+8qnsk/IdPwMYU3vWtpxjXUS/0hRPjrR6TM+M8d3?= =?us-ascii?q?zoqgM1KNejRatBfajd1ahnEJRpVNT8/DJM4gfftnXLkchVGp1+P46k6+W7eyEp?= =?us-ascii?q?2yreFDTZ/UrRmXu0MxgDB+D2ApD+/X3kn2BWk4WLt2hqRaiXnxEsXgL4vKYA?= =?us-ascii?q?=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A5LRtAat2LEvGqXJKbbGtEzcB7skDntV00zEX?= =?us-ascii?q?/kB9WHVpmszxra6TdZMgpHvJYVcqKRYdcL+7WJVoLUmxyXcX2/h1AV7BZniEhI?= =?us-ascii?q?LAFugLhuGO/9SKIUzDH4BmupuIC5IOauEYE2IK9vrS0U2pFco62tmb/OSNjefa?= =?us-ascii?q?9X1kSgZncMhbnn5EIzfeAktrXxNHGJZ8MJKd4/BMrz2mdW9SQd+8AhA+LpD+ju?= =?us-ascii?q?yOhJT7egQHGhJizAGPiAmj4Ln8HwPd/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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-yoursite-MailScanner-ID: CDBF54D1719F.AF85B X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); } -- 2.31.1