From patchwork Tue Sep 22 05:32:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Can Guo X-Patchwork-Id: 11791545 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9E84112C for ; Tue, 22 Sep 2020 05:40:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 97B5A23A9D for ; Tue, 22 Sep 2020 05:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728418AbgIVFkI (ORCPT ); Tue, 22 Sep 2020 01:40:08 -0400 Received: from labrats.qualcomm.com ([199.106.110.90]:30433 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbgIVFkI (ORCPT ); Tue, 22 Sep 2020 01:40:08 -0400 IronPort-SDR: iDm7nQrTkg5DuFhWfDQ/XsqGaAb5Wco1sNeCb3f4H2nfBZF5YSe1CkTkbV5LApO52EIunxcp6i vUxRA5Ge6A+pqYLvT9sr7OM5/Vx1f8xTSzZHoMNqrdUqUXvSCY3rR9dyCHH+TLlU9f8pE1BUj/ umzjIeqRqa8IwPKbeIBVKLzxovRrmC8JH5z+706ew7FQ9w2cRvv4Vncg8wj+wbbU7EkysN5oqf 5pgvGNYlXtdnxytC1iiVUdI3LG9nuH1dvXJCpOCc+mf6qUAmzXpDKD1BAx4bJZLQNoDlgHtJfV 9zM= X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="29170827" Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by labrats.qualcomm.com with ESMTP; 21 Sep 2020 22:32:29 -0700 Received: from wsp769891wss.qualcomm.com (HELO stor-presley.qualcomm.com) ([192.168.140.85]) by ironmsg02-sd.qualcomm.com with ESMTP; 21 Sep 2020 22:32:29 -0700 Received: by stor-presley.qualcomm.com (Postfix, from userid 359480) id 186A121547; Mon, 21 Sep 2020 22:32:29 -0700 (PDT) From: Can Guo To: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, cang@codeaurora.org Subject: [PATCH v1 0/2] Fix some racing problems btw err_handler and paths like system PM ops and the task abort callback Date: Mon, 21 Sep 2020 22:32:24 -0700 Message-Id: <1600752747-31881-1-git-send-email-cang@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This series mainly fixes racing problems btw err_handler and paths like system PM ops, async scan and task abort callback. This series has been tested with error/fault injections to system PM operations, async scan and task abort to the UFS device W-LU. Can Guo (2): scsi: ufs: Serialize eh_work with system PM events and async scan scsi: ufs: Fix a racing problem between ufshcd_abort and eh_work drivers/scsi/ufs/ufshcd.c | 122 ++++++++++++++++++++++++++++++++-------------- drivers/scsi/ufs/ufshcd.h | 3 ++ 2 files changed, 89 insertions(+), 36 deletions(-)