From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 05A63C3B189 for ; Thu, 13 Feb 2020 15:35:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D655920675 for ; Thu, 13 Feb 2020 15:35:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbgBMPcL (ORCPT ); Thu, 13 Feb 2020 10:32:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:37678 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388139AbgBMPcK (ORCPT ); Thu, 13 Feb 2020 10:32:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1DEE7B150; Thu, 13 Feb 2020 15:32:09 +0000 (UTC) From: Hannes Reinecke To: "Martin K. Petersen" Cc: Christoph Hellwig , Bart van Assche , James Bottomley , linux-scsi@vger.kernel.org, Hannes Reinecke Subject: [PATCHv2 0/3] ch: fixup refcounting imbalance for SCSI devices Date: Thu, 13 Feb 2020 16:32:04 +0100 Message-Id: <20200213153207.123357-1-hare@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi all, here's a set of fixes for a long-standing issue in the 'ch' driver where we would crash if one of the referenced devices was removed from underneath us. As usual, comments and reviews are welcome. Changes to v1: - Reworked after reviews from Bart Hannes Reinecke (3): ch: fixup refcounting imbalance for SCSI devices ch: synchronize ch_probe() and ch_open() ch: remove ch_mutex() drivers/scsi/ch.c | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) -- 2.16.4