From patchwork Tue Mar 26 20:43:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10872165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 76246925 for ; Tue, 26 Mar 2019 20:43:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59A8228CF3 for ; Tue, 26 Mar 2019 20:43:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D7B628D01; Tue, 26 Mar 2019 20:43:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2045A28CDA for ; Tue, 26 Mar 2019 20:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731736AbfCZUnk (ORCPT ); Tue, 26 Mar 2019 16:43:40 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36698 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729914AbfCZUnk (ORCPT ); Tue, 26 Mar 2019 16:43:40 -0400 Received: by mail-pl1-f193.google.com with SMTP id k2so2178584plt.3 for ; Tue, 26 Mar 2019 13:43:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b7H9S1hJ0kXXvPS1+c1vt3wYjwDsjRM3vVRLHIk6teM=; b=U+ZGJy1iaYRC5eHlFV3aEIJ2ojiHbonG8rkymN0zwuXk0MXOc+oQp1+6npkIBMH35d GSBI9EOw00oCV94jxUDsmYCqjC7aefDVTjzjPuVQYbC2suV0rRxghRrHKRFFbAScKz6a zRoUNCm5RUkByECkkrq7ohHIhWEX6p35OCOR79cZG4Ss5Sf68kFdD/rKY2uu9wW0+F2H p/z1CdhmmURkrrNLbO8A6pXm1rFdc+8VnyAhC2tW+YQ8UTQ50a7zgh3XrRzhmK2ukEhw PnLrMeXqzl0fIPmJV3+mctGPjkCPVHh9epybddH851S+XxxCw/5YxjmmQYp56iRyj/5M Ia+A== X-Gm-Message-State: APjAAAXOn8fcxdpZFZa02yieYXprv+MqCxA0WhuwsBP+nNcwCfgrFm+u RhAqdbLQqcazJeKjQOLGbE0= X-Google-Smtp-Source: APXvYqze+3x22CZJegQLDvjU9WIG9VUc4x4KcIoV/KA4BrQZPOvF4B17Iy89KXx2cq5G/Lp6XCH5bQ== X-Received: by 2002:a17:902:9a98:: with SMTP id w24mr32768724plp.247.1553633019917; Tue, 26 Mar 2019 13:43:39 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id j4sm29810524pfn.132.2019.03.26.13.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 13:43:38 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche Subject: [PATCH 0/2] Avoid that .queuecommand() gets called for a quiesced SCSI device Date: Tue, 26 Mar 2019 13:43:29 -0700 Message-Id: <20190326204331.54352-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Martin, As explained in a recent LSF/MM topic proposal, it can happen that the SCSI error handler calls .queuecommand() for quiesced SCSI devices. SCSI LLDs do not expect this. Hence this patch series. Please consider this series for kernel v5.2. Thanks, Bart. Bart Van Assche (2): scsi: Avoid that .queuecommand() gets called for a quiesced SCSI device RDMA/srp: Fix a sleep-in-invalid-context bug drivers/infiniband/ulp/srp/ib_srp.c | 21 ++------------------- drivers/scsi/scsi_error.c | 26 ++++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 21 deletions(-)