Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp852819imm; Fri, 15 Jun 2018 07:17:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJtELgQ5L0JXrnGTw3GlIzLY0YJJTeHx6kvuXRFw0NSkNO3Ineq/gAShnkpKqS5RYS/+Pdx X-Received: by 2002:a63:6e4e:: with SMTP id j75-v6mr1782992pgc.125.1529072268975; Fri, 15 Jun 2018 07:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529072268; cv=none; d=google.com; s=arc-20160816; b=YauOVIYPg14ZBivtkDIx8HKg0c7DZxnRfjIKK3DffKVTnq2zLaYwHCPZwelCVxlB2T 451o2IOItWAbViTKKUY7VZWYDwDv4vyBAGmmZ/ftWLSUGJhgn91jR08zbhTY9hf0jVe3 vptb2YDGQdRqVgCVESbMUQBwKFwdfzE3bvpxswBKwEVrlvcvNWVIhQjhmmcSZEpgGhsi 8y++ab+kDh/Wac/9Tc8o1MLxDhr23/mV5i5qfghqVsyTOjVKjPRAszW30ka1kjPuEmxU L+BYAIiyopMXURA5TC+GZCaRlazc1g3PD6HY0jPNWlv+XyCfQQR/qfIlZ/kZN/4GG5l4 AaTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=nXOrzapn5WG3GDHtSsZjnOKx92CxVBjGyuQ6jaMF2ac=; b=VG6m3JLho8ya3Zpiu2FnDDhK8T8o4EJq9ZzHQw3Fi1CvFBVZq899WHLZ+N90bhZPui xszB8E0VE4MNHnF/P+pjq0KHHWbea7yGe9ykqbeQtYyZqMxL7EVN8BM4qrAj7CiaMlz6 1lrsNOD6MAQUKoCf9x9aeXokyxLVs+Y6fdk9OoM/GJETKHM3AqXViPpCGKnApr4lGvCF xCP0wEskJKkeNAQOpm6a/RWLEC/u5l+ioi2ajhYjfE/4salHJyzcDZmmdCa9XphgR2w/ loXpHsQHDYvVJZVGxr517dskAf8+5z2v2JA0g2xGjVd2whx+CYtojzS+RBkRfbLWt0yn bJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=I6267hHT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9-v6si6782133pgf.60.2018.06.15.07.17.27; Fri, 15 Jun 2018 07:17:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=I6267hHT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756225AbeFOOQk (ORCPT + 99 others); Fri, 15 Jun 2018 10:16:40 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:45849 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756209AbeFOOQi (ORCPT ); Fri, 15 Jun 2018 10:16:38 -0400 Received: by mail-io0-f194.google.com with SMTP id l25-v6so10801355ioh.12 for ; Fri, 15 Jun 2018 07:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nXOrzapn5WG3GDHtSsZjnOKx92CxVBjGyuQ6jaMF2ac=; b=I6267hHTJfZ0+QiQ11EOQKb2wnd0hOFByal2U9UbvarftIvoGAHMLtleCPW2TxFeUG bCoF7Ggku7vA7Q0sfkpPMq/noPpVUi/SXO+nd14Nn69Wt6N5v9yvQ8AjxoOdKqnWMeIZ rZsWMsiAiyu8dfnI3q62TLfYck7znPqh4cR3bd/LMU20QCCr3duWg8BpX4tux3m3Y/q+ W+tS0DN9ITPcG07wounzSdoRzAJY2mlwslLbbSxTH+O1pnkgNpfoRRsccZJuskO5sdPt PovzUr6ijWXEtbufVuEBFadu+X9S2X6g1eUYpLyn3FxP9k5GT+19SwCBcfGKZX4a7qor M76w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nXOrzapn5WG3GDHtSsZjnOKx92CxVBjGyuQ6jaMF2ac=; b=Tw2PWSCs7J7eHMjoNdwc30L0E8qSBkcpCTKHvhd07xyFYsByyu7CGg1WcO1cRve9oP xbYkDYyhu6LLKOZhYjDJDcMhlyRJHG+7oO1fQk+g/ay3v8aVP0j1/cvtn8owvLHMCqUM jgVX8uqAzg6mER79WNi4FbsOTd9K6awOH58tx4qdjQxglwTbiWAALSiFxsvK1zqNxp3Y HIGJNdhImOYDvuN46EbDt6QL/wYJmg7X1od62Z8vKI64JpcU7peoDqkpNvJ3mIZ3G+m7 9AswYj0N0pnMNr4amzzlp+ZR/JKKmQ1PTOcO4XFHXWAT8GzN6hbSbFq85R/HkJH+PoKP EtyA== X-Gm-Message-State: APt69E3P2kMnf0aaXF/esdrz5Vjcm53tS7CyBg3c1o5oYjziAH9JA594 lYm9XtBWVWyFaBABr+Fmw4rysySHZ0w= X-Received: by 2002:a6b:3bcb:: with SMTP id i194-v6mr1621928ioa.86.1529072197412; Fri, 15 Jun 2018 07:16:37 -0700 (PDT) Received: from [192.168.1.167] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id u8-v6sm2918084iol.6.2018.06.15.07.16.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 07:16:36 -0700 (PDT) Subject: Re: [PATCHv2] block: fix bsg_unregister and bsg_open race To: Christoph Hellwig , Anatoliy Glagolev Cc: linux-block@vger.kernel.org, "James E.J. Bottomley" , FUJITA Tomonori , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180613221417.GA22778@xldev-tmpl.dev.purestorage.com> <20180614083806.GA18966@lst.de> <20180614234733.GA38460@xldev-tmpl.dev.purestorage.com> <20180615092741.GA21138@lst.de> From: Jens Axboe Message-ID: Date: Fri, 15 Jun 2018 08:16:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180615092741.GA21138@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/18 3:27 AM, Christoph Hellwig wrote: > On Thu, Jun 14, 2018 at 05:47:34PM -0600, Anatoliy Glagolev wrote: >> Thanks, Christoph. Good catch releasing the mutex on failure path. >> V2 patch with your suggestions applied. > > Looks good: > > Reviewed-by: Christoph Hellwig > > Now just re-add the changelog and resend it in a new thread. The original one was mixed up, too. Anatoliy, I fixed it up for you. But for future patches, please follow the usual patch format where the commit message is actually in the patch. -- Jens Axboe