Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5581511imu; Wed, 26 Dec 2018 05:29:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN4NFXoZPTMB6aHH2UOfpA3E7lwDICfMDacLsOyGKPr6xzkElnchbmCA+A682LuImBjEuXEk X-Received: by 2002:a63:8043:: with SMTP id j64mr19319620pgd.405.1545830969345; Wed, 26 Dec 2018 05:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545830969; cv=none; d=google.com; s=arc-20160816; b=axFobjMqqWugCMVPd7qD8jvzh0/WcqVOrvQwGTqq5oYbdil5V+XZFv8UZBbDXt7W8K iMACgNPXs4pResrmJQoZvtL7c8IGuSyAUFl1GNJ9dZj3Sj2Gu3AejtO96ooIjdkopzWz gX/5oCMhDVi0ZtzbhnZvl+0mz9F0li23dAp/wvYEhLWqFIYgiHi86Y7Z/Y+ClgVtqifF dN+KZpkVA1X4Da6/FdbsFlVV8CPqYXbXoZmi4v8+I1URxPumPqz7ypXLZ2fs1nIFtkrd RRMfmjtqBB/io8lS1D4Rd4//DzWYt5MevcOuT0DNoCdrKrfWbgE9cQ8aHZpFd6rAraJw B4wA== 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:cc:references:to:subject; bh=Ku5lZhEIKuv9tu5rVMtfKf5dxc1UyuB7UxsJQnEsXpA=; b=qSyWpzSDcxRAgx0ZoulI4o0HobFXVM8R4Nhd7OQzX0JustqN+wTWrPPZYrsjtTX9Vp xZLJ7uwkQJ023FG8GttlUAWBF53/TLSjzieALzmIF4HVojCDiFbocrHuQ4s4c3QTKVkb wrGBpW6VyMSxOnRp3JIhI/+oAyReeEIsPfKEca0BBR7rm0/0n1BkyrjCehLpp3sYXbhy Y9Cv26wdWurvA11zAza35VmGS1AFuRTc4BhbPaoB5j5tznD4dUD+x37awGSI8oS/xK7x Pd5VlOW3aGHbgrJj2jfILlZjpyd74wMGXGnNd2gopMC7tGYYaGPnBSzJBuHIjLzIp20N URGw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o38si29933533pgb.423.2018.12.26.05.29.13; Wed, 26 Dec 2018 05:29:29 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbeLZNZu (ORCPT + 99 others); Wed, 26 Dec 2018 08:25:50 -0500 Received: from relay.sw.ru ([185.231.240.75]:37390 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbeLZNZt (ORCPT ); Wed, 26 Dec 2018 08:25:49 -0500 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1gc9Bz-0004vm-4R; Wed, 26 Dec 2018 16:25:47 +0300 Subject: Re: [PATCH v2 0/5] fuse: Interrupt-related optimizations and improvements To: miklos@szeredi.hu References: <154166765576.10655.15178401490817622677.stgit@localhost.localdomain> Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org From: Kirill Tkhai Message-ID: Date: Wed, 26 Dec 2018 16:25:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <154166765576.10655.15178401490817622677.stgit@localhost.localdomain> 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 ping On 08.11.2018 12:05, Kirill Tkhai wrote: > v2: Changes in [1-2,5] patches. The biggest change is in [5], > where repeater FR_INTERRUPTED assignment is removed. > > This patchset consists of several parts. Patches [1-2] optimize > likely case of request_end(), and make this function to take > fiq->waitq.lock only, when it is really needed. This improves > performance of this function completes. > > Patch 3 makes request_end() to call wake_up() only for not > background requests (background requests never wait answer), > and this optimizes this function a bit more > > Patches [4-5] makes code to check userspace requests correct > interrupt id to requeue (whether we've sent this interrupt). > > --- > > Kirill Tkhai (5): > fuse: Kill fasync only if interrupt is queued in queue_interrupt() > fuse: Optimize request_end() by not taking fiq->waitq.lock > fuse: Wake up req->waitq of only not background requests in request_end() > fuse: Do some refactoring in fuse_dev_do_write() > fuse: Verify userspace asks to requeue interrupt that we really sent > > > fs/fuse/dev.c | 57 ++++++++++++++++++++++++++++++++++++++------------------- > 1 file changed, 38 insertions(+), 19 deletions(-) > > -- > Signed-off-by: Kirill Tkhai >