Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1511926

Re: [PATCH 23/60] block: introduce flag QUEUE_FLAG_NO_MP

Path csiph.com!news.freedyn.net!newsfeed.datemas.de!enother.net!enother.net!enother.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Ming Lei <tom.leiming@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 23/60] block: introduce flag QUEUE_FLAG_NO_MP
Date Sun, 30 Oct 2016 00:30:01 +0200
Message-ID <sxKit-4o5-3@gated-at.bofh.it> (permalink)
References <sxx1U-3GR-3@gated-at.bofh.it> <sxxbA-3Kf-47@gated-at.bofh.it> <sxDK1-7WB-7@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=agzezbTeQiJWmbFthH/nc2lwNsDKRye9J03rmW6GPOU=; b=rG3h7SavIsilh/lGlne2tkIrV0NPFAkBO+vzWejOsM8hKrxCOtZP2AianlHDHfoX5R vt44sEAhsjVWTm9n/NmmK59lrUd3jeSa29lOq3VPgb62axe7xyhG+j4U26O3tR3zx7Ij a1/3qEx6sZPM1hwiOjffXBeeAi6oyICalcIJ9d5sMzExDokC5hV+1OH/zv0UQTapNA+n JDgcRuw/wVUEvPedPq6tugcU/EseYFg+2ZPxWSq83feOGlcVM/XMfBQz55J7rvWyOcp6 j3bqT5lkNLZfF2H7LbGoPLksCuRIXSmRGy/l6aDLfje/OagPAI2wQpucgPprJgtqJ+MW uJcQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=agzezbTeQiJWmbFthH/nc2lwNsDKRye9J03rmW6GPOU=; b=maA36XwFpPiHuRO1ln+j74CQW5I/JzUJKF5wbEGKe5w73LQ4B/Gs5dtg1j+HFiBwgy UO5rBi0st4FjObF9Pv+Rie7MF6sbgqdlwEpFQjbK9KWBnHBAJ0s0JaaKIDOh7ntOVuX3 AZLTfgh8rw3WL9Cl7i2hwVBwjG3HZEbSTHeskB0hJBiRQf1cTXKYEQzRhEfuMCLNJJuz m2y99jUaekP5FxfGWcoheOeO7RMjt8y70Ug7poPOdGsFhRCEItJOT8HTE33FQj5OQ4UR Pa8YfdfiaV2R8WoRV5hU+mT7iUP2eof0qDYzlRQdYuu8lxlp8PqfMk2BK9/drathP2sQ lN/w==
X-Gm-Message-State ABUngvf4c07W3KqnckExuDUcUP5JW9t52LxXSN31saYEIJxljmn3L4un0SN4qLRWRxSy+lwsxsc3lUJRF4HK3w==
X-Received by 10.31.238.139 with SMTP id m133mr10129883vkh.27.1477779610419; Sat, 29 Oct 2016 15:20:10 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc Jens Axboe <axboe@fb.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-block <linux-block@vger.kernel.org>, Linux FS Devel <linux-fsdevel@vger.kernel.org>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Mike Christie <mchristi@redhat.com>, Hannes Reinecke <hare@suse.de>, Dan Williams <dan.j.williams@intel.com>, Toshi Kani <toshi.kani@hpe.com>, Shaohua Li <shli@kernel.org>, "open list:SOFTWARE RAID (Multiple Disks) SUPPORT" <linux-raid@vger.kernel.org>
X-Original-Date Sun, 30 Oct 2016 06:20:09 +0800
X-Original-Message-ID <CACVXFVPVW0YJ1+X_EhHAbt1zxF6BWqgmjOM_VRdzyLTJNxJWTw@mail.gmail.com>
X-Original-References <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> <1477728600-12938-24-git-send-email-tom.leiming@gmail.com> <20161029152933.GA17241@infradead.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1511926

Show key headers only | View raw


On Sat, Oct 29, 2016 at 11:29 PM, Christoph Hellwig <hch@infradead.org> wrote:
> On Sat, Oct 29, 2016 at 04:08:22PM +0800, Ming Lei wrote:
>> MD(especially raid1 and raid10) is a bit difficult to support
>> multipage bvec, so introduce this flag for not enabling multipage
>> bvec, then MD can still accept singlepage bvec only, and once
>> direct access to bvec table in MD and other fs/drivers are cleanuped,
>> the flag can be removed. BTRFS has the similar issue too.
>
> There is really no good reason for that.  The RAID1 and 10 code really
> just needs some love to use the bio cloning infrastructure, bio
> iterators and generally recent bio apis.  btrfs just needs a tiny little
> bit of help and I'll send patches soon.

That is very nice of you to do this cleanup, cool!

I guess it still need a bit time, and hope that won't be the block
for the whole patchset, :-)

[linux-2.6-next]$git grep -n -E "bi_io_vec|bi_vcnt" ./fs/btrfs/ | wc -l
45

[linux-2.6-next]$git grep -n -E "bi_io_vec|bi_vcnt" ./drivers/md/ |
grep raid | wc -l
54

>
> Having two different code path is just asking for trouble in the long
> run.

Definitely, that flag is introduced just as a short-term solution.

Thanks,
Ming Lei

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 23/60] block: introduce flag QUEUE_FLAG_NO_MP Ming Lei <tom.leiming@gmail.com> - 2016-10-29 10:30 +0200
  Re: [PATCH 23/60] block: introduce flag QUEUE_FLAG_NO_MP Christoph Hellwig <hch@infradead.org> - 2016-10-29 17:30 +0200
    Re: [PATCH 23/60] block: introduce flag QUEUE_FLAG_NO_MP Ming Lei <tom.leiming@gmail.com> - 2016-10-30 00:30 +0200

csiph-web