Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6273425imm; Mon, 23 Jul 2018 14:52:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcO5CbIFcq89yreK+UPRjl+dTGxxXUSAO6th2qaDpu0ovqpFzTS6ix7jW6oEATTy3nckpyb X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr14494353plf.126.1532382730089; Mon, 23 Jul 2018 14:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532382730; cv=none; d=google.com; s=arc-20160816; b=IAObI1nhCF9EkxOZRVUCm51pnhEmXao40l1oiKKgiNW/07C9uw5yU7NsDVFF5UQVvo htFEtkmnqBwsfinKPfRI98IuT4W2Mm/CVVf00fyIKRW55nclPebm8qyXgUgKXcvBEoIQ CxCegZU07QQRNYM7/OCuBTlPwmrwja8s5VvDeHn0V6dagEZODdJWlwgRuYLGcdJp8b6o IUxQDssAz3iHPbWDnNXhSrKBk0Wp6IKm1nNCughQHnDdcGmwthKQFkQP3JjIzr0W2/sX JdKcpKyYiD5eQLbQIn0bfTqIv0U4SCUSoN3KoiIssVFpJ+VATLMRiqwLrgLtki5i6ppT d7aw== 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:arc-authentication-results; bh=yNe8hACW+SCpL0VIlbi8eTFBr03JagM30hY8+F6N4pQ=; b=Pv/Yu5rQICdosWKdDkb7mOTEhLG5sNCCFdAdfzANytni2LhJf8PEnREMS3RIgtW7op CvH6bXalaQwTU1io8Qk5YwKnCbDa848z5U/z7WpVACXhmUScJ2rCiNRIIwHu88sIYC13 SpdM9fOKHJXbeYY9wTs7Fg10okYa4HqojJ4+jX60onbBuF9cN/U/+wTp30S0I4dbMwZ1 jdEEcQr8TimiijxRy5VkWrFO3eNxXZ7KAM6AylC1Lli0WaZrRsYuGenUnf2llhwZBq2k /ID9csItoKhzynbBITUUmpcdvYZ2j+gRawP5q64zBIesIqtAO95dE9AuvuRX+vCbdJUE RYcw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a140-v6si10147624pfd.35.2018.07.23.14.51.55; Mon, 23 Jul 2018 14:52:10 -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; 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 S2388206AbeGWWxc (ORCPT + 99 others); Mon, 23 Jul 2018 18:53:32 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:59132 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388109AbeGWWxc (ORCPT ); Mon, 23 Jul 2018 18:53:32 -0400 Received: from fsav402.sakura.ne.jp (fsav402.sakura.ne.jp [133.242.250.101]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w6NLngQZ065239; Tue, 24 Jul 2018 06:49:42 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav402.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav402.sakura.ne.jp); Tue, 24 Jul 2018 06:49:42 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav402.sakura.ne.jp) Received: from [192.168.1.8] (softbank126074194044.bbtec.net [126.74.194.44]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w6NLnbwE065217 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Jul 2018 06:49:41 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: [PATCH] block: ioprio: Replace GFP_ATOMIC with GFP_KERNEL in set_task_ioprio() To: Christoph Hellwig , Jia-Ju Bai Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180723022116.6919-1-baijiaju1990@gmail.com> <20180723071803.GA30817@infradead.org> From: Tetsuo Handa Message-ID: <8dab79c6-eb75-b013-1f83-3af43a7052cb@I-love.SAKURA.ne.jp> Date: Tue, 24 Jul 2018 06:49:32 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180723071803.GA30817@infradead.org> 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 2018/07/23 16:18, Christoph Hellwig wrote: > Looks good, Looks bad. :-( SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) { (...snipped...) rcu_read_lock(); (...snipped...) ret = set_task_ioprio(p, ioprio); (...snipped...) rcu_read_unlock(); (...snipped...) } > > Reviewed-by: Christoph Hellwig > > But to me it seems that btrfs and maybe ext4 as well would be much > better off just setting a per-IO priority in the bio. > > Any chance yo could look into that? >