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=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 294BEC31E40 for ; Tue, 6 Aug 2019 22:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E3F6D21874 for ; Tue, 6 Aug 2019 22:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565129926; bh=WzSjqcmpCELnmaCL2N5FBPAr3U4Jd2Zzzio6k+U2Ef0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=lb6TiSjvDXc1cTK29E47cY8YJdXwFdaK/EZWd4nx3VUzprIZVH/xQ8IFmZ5201iUD 9b7CHEdIrCQEx2rG8Ga9rPaucSks0WUSyRWRxXKM58Wmy1JA2dqvma9l7C8Ap9QWzO Ym4iuMMq0vyJK0DTo2cph6okFfZFXd7nlGR9yIic= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbfHFWSp (ORCPT ); Tue, 6 Aug 2019 18:18:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:37594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfHFWSp (ORCPT ); Tue, 6 Aug 2019 18:18:45 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77F8221874; Tue, 6 Aug 2019 22:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565129924; bh=WzSjqcmpCELnmaCL2N5FBPAr3U4Jd2Zzzio6k+U2Ef0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L6KYmZSKBItEBppqEpd15l1KB+ZxXjbrsQzE103gnD2J3PWh4PIhpKNWRQpEdTzL+ HCqGNAWfgLSRBYl0lylgGhYqDHhLvFIKYgfT+KFtEKNRk3ZXyRbwdFjqjHymltK6x6 TxT99vhvxtHFHtL/+UXzUFXvXTu8ty7l5dmFB6wg= Date: Tue, 6 Aug 2019 18:18:43 -0400 From: Sasha Levin To: Dan Williams Cc: stable@vger.kernel.org, Vishal Verma Subject: Re: [5.2-stable PATCH 1/2] libnvdimm/bus: Prepare the nd_ioctl() path to be re-entrant Message-ID: <20190806221843.GP17747@sasha-vm> References: <156505494437.1043830.9239219668937125315.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <156505494437.1043830.9239219668937125315.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Aug 05, 2019 at 06:29:04PM -0700, Dan Williams wrote: >commit 6de5d06e657acdbcf9637dac37916a4a5309e0f4 upstream. > >In preparation for not holding a lock over the execution of nd_ioctl(), >update the implementation to allow multiple threads to be attempting >ioctls at the same time. The bus lock still prevents multiple in-flight >->ndctl() invocations from corrupting each other's state, but static >global staging buffers are moved to the heap. > >Reported-by: Vishal Verma >Reviewed-by: Vishal Verma >Tested-by: Vishal Verma >Link: https://lore.kernel.org/r/156341208947.292348.10560140326807607481.stgit@dwillia2-desk3.amr.corp.intel.com >Signed-off-by: Dan Williams I've queued up both the 5.2 and 4.19 patches, thanks! -- Thanks, Sasha