Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1141035imm; Wed, 1 Aug 2018 10:52:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcU8n1KAonbretlyaipAuPJk/YFa1cd6WMVma2v3+etgUTm5g/REw1GcPlM82qGJJBpdcYF X-Received: by 2002:a17:902:bd42:: with SMTP id b2-v6mr25703498plx.205.1533145932578; Wed, 01 Aug 2018 10:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533145932; cv=none; d=google.com; s=arc-20160816; b=gRvRrbZj19ejqQTum9KjUoGAeIfw2GHn02OKY3VE2HvwGq4dZENrRHKWAWTObFCe9t Atb9kF02GiMmhZHyhqbOw2uFgeIrWoVhoW9BUj3yZqyqyS8bcXCWiDjm47imL7AtXx3B f9kLqKDOVnXq0OIjFE3OVRZCxsfcV+/DUaWBy0grDsvdqnyQ1CV4KvkNH5jKwryN8D5F GhloGnajgKf64aSyAMFL2FqSrOYh6/ryO7vCqh0P010cZXQUiq+605G3ohNP2Raf025u bfb1cOTREOmPrVTqfhbps67i51qdwZol3SBmqnn41exdWAPruDTQZZgQesk9ZpSFPs5X UVEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Rmpl1xYIJSEU9nEIh0GKnKc7HTn/k06CQJ4sA8Q67lY=; b=Uu6u4uHqT3q0ryHI/9gRS0xi+SUAl8vVt0UCcdcJCdDjbcJsoqy/semU2ZcM4J8iGl wQ0Yz6BSw7KqoVrjiR6IlHfKotGg/cEjNCi2yMhEhKodIsWvJLZ27o1ZyYl0cxLugB6S PMk7rC5WwVGhHE5uavIskBJXGcYYSmrGiTaCxYJL7iI9VrzCJQktLNafPW/CgCiSwHVc gblZ4GrgUJC2rBhudrnLj0ajdlc6G42gyIZZh/EE7o0NBs8J3hEcxnGH9fRfac97AlLr 4jeKlKOjPPfa6JIt3TWEgEJnL9PDBfHIi4v2SORnxLiHMDvhS3bL2NbXS52ITAIxjCcW JPAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h21-v6si17509053pgi.430.2018.08.01.10.51.57; Wed, 01 Aug 2018 10:52:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390087AbeHATh1 (ORCPT + 99 others); Wed, 1 Aug 2018 15:37:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50606 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406131AbeHATIn (ORCPT ); Wed, 1 Aug 2018 15:08:43 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 003E5CC9; Wed, 1 Aug 2018 17:22:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shivasharan S , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 205/246] scsi: megaraid_sas: Increase timeout by 1 sec for non-RAID fastpath IOs Date: Wed, 1 Aug 2018 18:51:55 +0200 Message-Id: <20180801165021.532823078@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shivasharan S [ Upstream commit 3239b8cd28fd849a2023483257d35d68c5876c74 ] Hardware could time out Fastpath IOs one second earlier than the timeout provided by the host. For non-RAID devices, driver provides timeout value based on OS provided timeout value. Under certain scenarios, if the OS provides a timeout value of 1 second, due to above behavior hardware will timeout immediately. Increase timeout value for non-RAID fastpath IOs by 1 second. Signed-off-by: Shivasharan S Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -2677,6 +2677,9 @@ megasas_build_syspd_fusion(struct megasa pRAID_Context->timeout_value = cpu_to_le16(os_timeout_value); pRAID_Context->virtual_disk_tgt_id = cpu_to_le16(device_id); } else { + if (os_timeout_value) + os_timeout_value++; + /* system pd Fast Path */ io_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; timeout_limit = (scmd->device->type == TYPE_DISK) ?