[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACVXFVOzaZ70UB8+1WM1Xukb=PRi9-C13GSDy8YtQda+WMrOSA@mail.gmail.com>
Date: Tue, 28 Feb 2017 20:18:53 +0800
From: Ming Lei <tom.leiming@...il.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Shaohua Li <shli@...nel.org>, Jens Axboe <axboe@...com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"open list:SOFTWARE RAID (Multiple Disks) SUPPORT"
<linux-raid@...r.kernel.org>,
linux-block <linux-block@...r.kernel.org>
Subject: Re: [PATCH v1 02/14] block: introduce bio_remove_last_page()
On Sun, Feb 26, 2017 at 2:23 AM, Christoph Hellwig <hch@...radead.org> wrote:
> On Fri, Feb 24, 2017 at 11:42:39PM +0800, Ming Lei wrote:
>> MD need this helper to remove the last added page, so introduce
>> it.
>
> If MD really has a valid use case for this it should open code the
> operation. The semantics look deeply fishy to me.
Thinking about MD's case further, and looks bio_add_page() won't
fail at all in case that queue's limit isn't applied in bio_add_page()
in future.
So I will change MD's handling in this case and avoid to introduce
bio_remove_last_page() in V2.
Thanks,
Ming Lei
Powered by blists - more mailing lists