Return-Path: Received: from mail-io1-f68.google.com ([209.85.166.68]:46546 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729049AbfC2PDv (ORCPT ); Fri, 29 Mar 2019 11:03:51 -0400 Received: by mail-io1-f68.google.com with SMTP id b9so1955490iot.13 for ; Fri, 29 Mar 2019 08:03:50 -0700 (PDT) Subject: Re: [PATCH v3 2/3] block: verify data when endio References: <20190329142346.1677-1-bob.liu@oracle.com> <20190329142346.1677-3-bob.liu@oracle.com> <41c8688a-65bd-96ac-9b23-4facd0ade4a7@kernel.dk> <1b638dc2-56fd-6ab4-dcca-ad2adb9931bb@kernel.dk> From: Jens Axboe Message-ID: <7599b239-46f4-9799-a87a-3ca3891d4a08@kernel.dk> Date: Fri, 29 Mar 2019 09:03:47 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Bob Liu , "Martin K. Petersen" Cc: linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, shirley.ma@oracle.com, allison.henderson@oracle.com, david@fromorbit.com, darrick.wong@oracle.com, hch@infradead.org, adilger@dilger.ca, tytso@mit.edu On 3/29/19 9:00 AM, Bob Liu wrote: > On 3/29/19 10:52 PM, Jens Axboe wrote: >> On 3/29/19 8:51 AM, Martin K. Petersen wrote: >>> >>> Jens, >>> >>>> The integrity stuff still has that nasty pointer in there. It'd be >>>> nice to get rid of that as well, and hide it all in a parent container >>>> of the bio. >>> >>> That's fine with me. We really didn't have that option a decade ago. >> >> Right, but now we do. Hence trying to nudge things in that direction, >> instead of adding another pointer to struct bio for a new use case. I'd >> much rather go that route, instead of unionizing with another pointer >> that should be going away instead. >> > > No problem, will update in next version. > Let me wait a while for feedback about the verify callback. > Thank you! I think you're still missing my point. If you go the bio_set and container-of-bio route, then you can do whatever you want. You will not need a callback in the bio, you will just have a private end_io function for that particular bio that does the verification. -- Jens Axboe