Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3795340iog; Tue, 28 Jun 2022 02:59:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3v3z/CBvZfcGHwZ8uUJFr7D86J0lC9eoQuSSt+U+8KmSluHzEKG1CnmDCpg39/tcVmVoi X-Received: by 2002:a17:90b:4a05:b0:1ec:a6bc:957a with SMTP id kk5-20020a17090b4a0500b001eca6bc957amr20838896pjb.92.1656410393533; Tue, 28 Jun 2022 02:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656410393; cv=none; d=google.com; s=arc-20160816; b=nrNUBnIouVrP189eucCNpgQS7VWQnqYGneH+lr8onSfnf5vAcm0WxiohUdQb12sZ0A WEA0Y+xMvzjjpSj4P8D9ayzDH141Ujclf9gyV32ujvToPbB4altVX4dYlrf0zipxMc+R Gc1s34mqMzbaZ9cQbAhomkNz4xzGPIdUeqJU+BeJk47nTCaHY6KOPAwsOS2Bnjh1zyYb bbcTO8otP9fcF16sG7OPbahTJI3RuYaP+QuEG+Ih/CrcY5u+ISAX/rd5wiZexbbXdzo0 Q9LqGqAvxJO8vz+tFM0f51EBJ9IQtTkcJOv5d7zg0EGlwYXeu+qdM5zrgGV29OnnfvAs XMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:subject :references:cc:to:ironport-hdrordr:ironport-data; bh=cVrDL6kJfXMGssm1Zk40Fq4eq13IbcyDQgfPfFP0p4s=; b=fa03aMVo+43SwZ7C6IP+vDVApF7BlQngBA9VmK/uHeJuFYeS55cLJsdgy3UEffZyO4 Pfj4STB7UqmzaQnK5qHHvIAc5gQBoq0XvhOX3VxGH1ugZRuVFaxq/yaDnKpCUrocXry0 wmh+zDTKvQKdd90XxQBPqcBIPjBoBDgp1utN6PUqkrw2+YQDzN7y5tMjIxGg4F+ju76o pD5r1EBQ3Ezq+E5J2QiOPgLaQd9HGVxitWo529X6AdwJNmIaf3h1BmbbWmqlDBcOA11U r7w2Q7XSy2i4ddgh2DGjVHC419G1sFufsq45fE7H74/1T0SUYJH0IfLpu7wX6iMTuaLL QE0A== 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 i191-20020a6387c8000000b0041169d2d034si109694pge.682.2022.06.28.02.59.41; Tue, 28 Jun 2022 02:59:53 -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 S229612AbiF1JiQ (ORCPT + 99 others); Tue, 28 Jun 2022 05:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234605AbiF1JiO (ORCPT ); Tue, 28 Jun 2022 05:38:14 -0400 Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CEA130A; Tue, 28 Jun 2022 02:38:11 -0700 (PDT) IronPort-Data: =?us-ascii?q?A9a23=3AwEfiD6BZ9qbamxVW/9Phw5YqxClBgxIJ4g17XOL?= =?us-ascii?q?fVwLtgmtzhmMEnGIcWD+DM/mCazb1cttxbNzn80IEsJCAx9UxeLYW3SszFioV8?= =?us-ascii?q?6IpJjg4wn/YZnrUdouaJK5ex512huLocYZkHhcwmj/3auK79SMkjPnRLlbBILW?= =?us-ascii?q?s1h5ZFFYMpBgJ2UoLd94R2uaEsPDha++/kYqaT/73ZDdJ7wVJ3lc8sMpvnv/AU?= =?us-ascii?q?MPa41v0tnRmDRxCUcS3e3M9VPrzLonpR5f0rxU9IwK0ewrD5OnREmLx9BFrBM6?= =?us-ascii?q?nk6rgbwsBRbu60Qqm0yIQAvb9xEMZ4HFaPqUTbZLwbW9TiieJntJwwdNlu4GyS?= =?us-ascii?q?BsyI+vHn+F1vxxwSnsgYvMeo+ebSZS4mYnJp6HcSFPi3/VnDUceOYwe5/YyBD8?= =?us-ascii?q?e9rofMj9lRhKOheiexLO9V/kqh84masLsOes3v3h60TDfS+4rXZ3ZWKjMzdhC1?= =?us-ascii?q?Tw0i4ZFGvO2T84Ybyd/KRfNeRtCPn8JB58k2uSlnH/yd3tfsl39ja425XXDiRd?= =?us-ascii?q?6y7nFLtXYYJqJSN9Tk0LeoXjJl1kVqDly2Me3kGLDqyzzwLSU236TZW7bL5Xgn?= =?us-ascii?q?tYCvbFZ7jZ75MUqaGaG?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A99DtYKvfHESOGhJj5wy2oRmQ7skD7NV00zEX?= =?us-ascii?q?/kB9WHVpmszxra+TdYcgpGfJYVEqKQgdcLG7Sc+9qBznhPxICOUqXYtKGTOW31?= =?us-ascii?q?dAT7sSibcKoQeQeBEWn9Q1vcwLHpSWSuefMbEQt6fHCWeDf+rIjOP3lZxAm92u?= =?us-ascii?q?s0tFfEV7bb169QdlBkK+Gk1yfgNPAp00D/Onl7B6jgvlaXIKdd66G3VAe+DCou?= =?us-ascii?q?fAnJXgbQVDKAUg7GC1/E6VwY+/Ax6FxQ0fTj8K5b8j9FLOmwv/6r7mk9zT8G6m?= =?us-ascii?q?61Pu?= X-IronPort-AV: E=Sophos;i="5.88,333,1635177600"; d="scan'208";a="126760304" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 28 Jun 2022 17:38:09 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 1A6BE4D68A24; Tue, 28 Jun 2022 17:38:07 +0800 (CST) Received: from G08CNEXCHPEKD08.g08.fujitsu.local (10.167.33.83) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 28 Jun 2022 17:38:06 +0800 Received: from [192.168.122.212] (10.167.226.45) by G08CNEXCHPEKD08.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Tue, 28 Jun 2022 17:38:07 +0800 To: CC: , , , , References: <9831381e-f9c7-f7af-e6da-a757a76f34@linux-m68k.org> Subject: Re: [PATCH] scsi: Enlarge log buffer length to 256 From: "Li, Zhijian" Message-ID: <6cbb4340-abc2-d902-7ae6-0ae169a97132@fujitsu.com> Date: Tue, 28 Jun 2022 17:38:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.1.1 MIME-Version: 1.0 In-Reply-To: <9831381e-f9c7-f7af-e6da-a757a76f34@linux-m68k.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-yoursite-MailScanner-ID: 1A6BE4D68A24.AEE54 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,NICE_REPLY_A, 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 Sorry for the late reply. (Strange! this reply didn't arrive to my mailbox) > On Fri, 24 Jun 2022, Li Zhijian wrote: > > > 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); > } > > Perhaps it's better to waste fewer words (both kinds). E.g. Yes, it's an option. if no objection, i will apply your suggestion in 24h later. hahaha :) Thanks Zhijian > > diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c > index 49ef864df581..e7283bf23db3 100644 --- > a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -463,13 > +463,11 @@ static void scsi_report_sense(struct scsi_device *sdev, evt_type = SDEV_EVT_LUN_CHANGE_REPORTED; > scsi_report_lun_change(sdev); > sdev_printk(KERN_WARNING, sdev, > - "Warning! Received an indication that the " "LUN assignments on this target have " > "changed. The Linux SCSI layer does not " > "automatically remap LUN assignments.\n"); > } else if (sshdr->asc == 0x3f) > sdev_printk(KERN_WARNING, sdev, > - "Warning! Received an indication that the " "operating parameters on this target have " > "changed. The Linux SCSI layer does not " > "automatically adjust these parameters.\n");