From patchwork Wed Jan 27 04:00:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Asutosh Das (asd)" X-Patchwork-Id: 12048933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D16BC433DB for ; Wed, 27 Jan 2021 04:49:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 444412070E for ; Wed, 27 Jan 2021 04:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232974AbhA0Eo6 (ORCPT ); Tue, 26 Jan 2021 23:44:58 -0500 Received: from labrats.qualcomm.com ([199.106.110.90]:48333 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238236AbhA0EJ2 (ORCPT ); Tue, 26 Jan 2021 23:09:28 -0500 IronPort-SDR: P3r96C4snBGTzGnv6Brv1PLENwoP0HaSpZgU3qP++ho5Gz9p476W5rVVvvlqjXjOVepDwZpMim fDbCs8WPwPQw9lLPkcdQkjySunkO9rLfUPr3k8epfWCKpiWV5JR4Gk8F4zN44gd5YwFK6/hOXg 2oEPI36Z81HYUXQsBq5l2ssVZF9KpjXdQrKlham5y7zvbXIV+ttOYCrlxxqkiZfNJ0XC2E6EIN 4vemxJgNxL27dyEvfVnWhuGtpvFMjSoZI4iDG+qesn5uoFx8r9fk3HO0Z0MR08gbvW5FRybhJz C6I= X-IronPort-AV: E=Sophos;i="5.79,378,1602572400"; d="scan'208";a="47711301" Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by labrats.qualcomm.com with ESMTP; 26 Jan 2021 20:00:42 -0800 X-QCInternal: smtphost Received: from wsp769891wss.qualcomm.com (HELO stor-presley.qualcomm.com) ([192.168.140.85]) by ironmsg03-sd.qualcomm.com with ESMTP; 26 Jan 2021 20:00:26 -0800 Received: by stor-presley.qualcomm.com (Postfix, from userid 92687) id 2616321901; Tue, 26 Jan 2021 20:00:26 -0800 (PST) From: Asutosh Das To: cang@codeaurora.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: Asutosh Das , linux-arm-msm@vger.kernel.org, stern@rowland.harvard.edu Subject: [RFC PATCH v1 0/2] Fix deadlock in ufs Date: Tue, 26 Jan 2021 20:00:21 -0800 Message-Id: X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patchset attempts to fix a deadlock in ufs. This deadlock occurs because the ufs host driver tries to resume its child (wlun scsi device) to send SSU to it during its suspend. Asutosh Das (2): block: bsg: resume scsi device before accessing scsi: ufs: Fix deadlock while suspending ufs host block/bsg.c | 8 ++++++++ drivers/scsi/ufs/ufshcd.c | 18 ++---------------- 2 files changed, 10 insertions(+), 16 deletions(-)