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=-2.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 AE2A8C47E49 for ; Mon, 21 Oct 2019 14:45:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85C3C2053B for ; Mon, 21 Oct 2019 14:45:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="E/SlSvAk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728090AbfJUOpj (ORCPT ); Mon, 21 Oct 2019 10:45:39 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34051 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727403AbfJUOpi (ORCPT ); Mon, 21 Oct 2019 10:45:38 -0400 Received: by mail-pg1-f196.google.com with SMTP id k20so7968523pgi.1 for ; Mon, 21 Oct 2019 07:45:36 -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=yTPxXfaDi/cyr4JY0Jgze0DAKcyw3G+EJ8T7To77x0c=; b=E/SlSvAkGWL8pGfVnOrx5+GTnF6CvSrWmR+zkwKOSkkzfwcdpu65kTGYr8fiTIgmTb /MDHOSXlb+rVJq0m8ODzgBgQNzhPe5snw/63q3NW2jxh3bIjMmPPoHfMdNcqEjFu2lb+ HumNyf3lPhRJ+nZ3otIGsjmfY8uPQQfSP8ks+6W2RDchYKLh/XZ3zALOUlwItL3A9JYN cug3R8Dor9BHokXb+24HyBdDBrqK8YqTgzzb7oFXQ3Ntr6SpH4TpJFaeAI/MPl+QVvnd /Wx9r1UMh6hDjKQF0/f2FEXTJFwUTWxWNK2wuUajZn2v7djIAqlDwleTaP9XiJlRpqRO PvrQ== 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=yTPxXfaDi/cyr4JY0Jgze0DAKcyw3G+EJ8T7To77x0c=; b=cZkAQSMbMXK7oAk5R+8sgrhXyR3SFfpbSZDkYCZsSlM6o8wZ7TcXZ9k+U0Il8H5WNv 8SrWtk+CmT42NuiyrJQrJicq2DKy+jiGMKVJPKClx1G4QXfYCk/V2L8ohP89bq9w+Y4K wsWNmVamK+Ayao9ZARyywRd/Qcks/o3ROnTTEnI6uXFlEbIs/z4RTRp49lFm/7zW1PEe lGomAJxDyzhdTrfUtBFc9rede+M3bnwiMtrw+kiZiDB9yZh3Ecf2dmM9UyRVOf3/hbex LCcsu7rJaQGabI9KMJId6AodvGZ9nt1qEjhNH+Il9+G3MkDpijmlfIz47/g1PPd8xYlW heBQ== X-Gm-Message-State: APjAAAWo31xR/piJjWE91Pgnd04QDhVraFlj/iyxc34+Z31lf3K0vbN/ 3ipTcDxMXNHmzUDB5vGeQopsiA== X-Google-Smtp-Source: APXvYqzrYlQXe7Wl+Pdo7pLekzBcv2vcqfOuYQs+fs6gn9SlfFOZLCyLa+RYqx/pnpy4I4e9QMaEgw== X-Received: by 2002:a17:90a:a605:: with SMTP id c5mr30180069pjq.28.1571669136286; Mon, 21 Oct 2019 07:45:36 -0700 (PDT) Received: from [192.168.1.182] ([192.40.64.15]) by smtp.gmail.com with ESMTPSA id y80sm16549698pfc.30.2019.10.21.07.45.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 07:45:35 -0700 (PDT) Subject: Re: [RFC PATCH 1/2] block: add support for redirecting IO completion through eBPF To: Bart Van Assche , Hou Tao , Alexei Starovoitov Cc: linux-block@vger.kernel.org, bpf , Network Development , Alexei Starovoitov , hare@suse.com, osandov@fb.com, ming.lei@redhat.com, damien.lemoal@wdc.com, Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song References: <20191014122833.64908-1-houtao1@huawei.com> <20191014122833.64908-2-houtao1@huawei.com> <84032c64-8e5e-6ad1-63ea-57adee7a2875@huawei.com> <737d9d3f-e72c-ac31-6b2a-997202a302bd@acm.org> From: Jens Axboe Message-ID: Date: Mon, 21 Oct 2019 08:45:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <737d9d3f-e72c-ac31-6b2a-997202a302bd@acm.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 10/21/19 7:48 AM, Bart Van Assche wrote: > On 10/21/19 6:42 AM, Hou Tao wrote: >> Your suggestion is much simpler, so there will be no need for adding a new >> program type, and all things need to be done are adding a raw tracepoint, >> moving bpf_ccpu into struct request, and letting a BPF program to modify it. > > blk-mq already supports processing completions on the CPU that submitted > a request so it's not clear to me why any changes in the block layer are > being proposed for redirecting I/O completions? That's where I'm getting confused as well. I'm not against adding BPF functionality to the block layer, but this one seems a bit contrived. -- Jens Axboe