Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6400733pxb; Mon, 8 Nov 2021 08:02:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3+X+PgHpb+fHh02UMOX2JI7qYudU+paVH1jIfEsmPaEF8aZicuSsia6h90LbiuMErXsNh X-Received: by 2002:a17:906:26ce:: with SMTP id u14mr353075ejc.559.1636387370608; Mon, 08 Nov 2021 08:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636387370; cv=none; d=google.com; s=arc-20160816; b=YCXb4+SAytHeJ9ZsjFMdZRLXIWruEb16PonQ1fgaP0dLxJ1eWa8FffOJQR38dCz/vj uZqRnLUG2keTzIruHWrxrLEGfHG0DMk/skHep8iYwQEh5v1iEgu41ELPB7yHA/zE0/F2 Lat50rECrvMVyfh4aAS0p5GIEi7Ll8RuL0UHmu5V49uACrY3wQxhpfa5dG2q5lhfxOeO JJZgd8FdLGIAQAY5VNZkMi4AAKACdZTZGVPQZ1zoUj8kfCAow4Vv4PpY8ywRtMRKyKSm P0ouaCtRaInaQb8WumZ301/ceL+TXtzZ76okGQ7kqOiGztILA0lQBiYHuR3Wp6yx3AtS 8Ypg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=Z10ZQMcV4FAApFfJ8Szgq84wYH2Jo5Zb9ZcWUXt9tqY=; b=EfIt0edEEG5aRWDEfkfoU8I4PKZ4A+dxoDJantik9vfN+crWO30k6mNLOaOK0HuVvY b5OGiBKN33yhYgwRIUX/79I5kiTn9xLNQLTQ877mfXzjGWOkHmEcdmJjhnkwq8LqEovM 5sIBDLTeky0O7ql3ebnu86vPu07gpCbflfvM+kzp6g5ehiA+l5cI5ZkbiOOQvzL6fskZ RRMudOZDCY50SR7nAx0oBn22RrDctT8OjJhYIbyVeg549AjtkMnGFQ1UhfKZ+JkywOwQ rR+3fz/YPwx83mB9SPr27Pe+jFHdjJbjDJ7SB8Hoq0apiTiYb8FyNLMgUh9CRK4OpORo Ov8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=pgTIKRqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si14613321ejp.461.2021.11.08.08.02.07; Mon, 08 Nov 2021 08:02:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=pgTIKRqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239387AbhKHMLC (ORCPT + 99 others); Mon, 8 Nov 2021 07:11:02 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:18520 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbhKHMLB (ORCPT ); Mon, 8 Nov 2021 07:11:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1636373298; x=1667909298; h=from:to:cc:subject:date:message-id; bh=eH1Gb+IA5IdkGUdWJHRt8g479OQztDnYXIbbY5QfhYg=; b=pgTIKRqaZR8Ap0b6zJDLOV6jHJW4aOPMYG15ArdxCcQ2I3bD/9scosIJ rMabctw3jC6P3bGmshM1TkNwK1pnBc57SLpCkyUIhUHJyW7WCyfLVzt6P W8if/XC9diSS14C1pHEuDHUONSWso+7cYOG3U9+rpXsTZwO823G0FIpH3 YM3063ZfTLkNjjnJ0Di5TfA6ARo5Uh7EylOgCvLvtO2kVR8BWYZRbaZVc BsLpKvp+xEy4Fg+ORzy2trhKM/PdKiQaXVvrskfGUEJXv66Udiv3m6iwq d+Y+EcLBvFBVlVL46P6oBcCK5jBEYEfZgFudi4NSRiSVMgrCiuhyyaF/i g==; X-IronPort-AV: E=Sophos;i="5.87,218,1631548800"; d="scan'208";a="186004958" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 08 Nov 2021 20:08:17 +0800 IronPort-SDR: 9fnoYJTcQdP/ADpzCZ9HHZbqeoYRJ4WvpPu1pOBeP5/3qjmo4NUuUUdOMJoa9kG0wfI8xdODGj d0mjtTWmQmkfsVzoAWGJNORaTGWr1opsepJVHyhl7RD2V6d8lGtG3ozDcOPnS6v5ZvfYo+Ie0q tEgK9tYmpFICurHxrT4FE+g9tvYuqHIfzLl7vOkVAe6TnU4k2pQjm2x9mjIrIlf1Og6YN/NHt4 G5ZW2p/i1cuY0L88J233MUJFU5sZLH53Y+hPfikc/ZxYvZM81b1g07aao5TnyrFpVD441sWop0 9PEpHhcRPhDWlZqq97VDpg8i Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2021 03:43:30 -0800 IronPort-SDR: rPP9i10Vnmm1XrcC92owDvVUUgR34rO5YwqKyhcwNmCKGoyzD1kV1U36YH+pbWyGW8lYOM8p9k f/96aPHJXq7wa7qTvF9crfII5q5pkhZuG/CxZ39ntHPf+zILiFdNarw15B0vfsunY47P2GH0aZ cLTwIGnGJpflOZbvscRbXdh4MYZ2jV91AVuSBfp5QHwbp4xfoNA9V5aT7btpISUOW8F3iuSm3i frFI7uiKTYNU/GjiWBpPhX6M9FiotIZeySXF8u9v8b2EU27OYlE44GDymKDf+L6lnAgbk7CPNX mS0= WDCIronportException: Internal Received: from c8jqy33.ad.shared (HELO BXYGM33.ad.shared) ([10.225.32.157]) by uls-op-cesaip01.wdc.com with ESMTP; 08 Nov 2021 04:08:14 -0800 From: Avri Altman To: "James E . J . Bottomley" , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Avri Altman Subject: [PATCH 0/2] scsi: ufs: Block user-space access if eh-in-progress Date: Mon, 8 Nov 2021 14:08:02 +0200 Message-Id: <20211108120804.10405-1-avri.altman@wdc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If error handling is in-progress, keep things simple and do not allow user-space access until we are operational again. Avri Altman (2): scsi: ufs: Inline eh-in-progress states scsi: ufs: Return a bsg request immediatley if eh-in-progress drivers/scsi/ufs/ufshcd.c | 15 +++------------ drivers/scsi/ufs/ufshcd.h | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 13 deletions(-) -- 2.17.1