From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: confusion about bio_split To: NeilBrown , Wang Sheng-Hui , linux-block Cc: Goldwyn Rodrigues References: <87o9ll83gr.fsf@notabene.neil.brown.name> From: Jens Axboe Message-ID: <0d6cd230-42e6-cef7-d660-eac84d71ecdf@kernel.dk> Date: Tue, 23 Jan 2018 09:12:19 -0700 MIME-Version: 1.0 In-Reply-To: <87o9ll83gr.fsf@notabene.neil.brown.name> Content-Type: text/plain; charset=utf-8 List-ID: On 1/23/18 12:00 AM, NeilBrown wrote: > On Mon, Jan 15 2018, Wang Sheng-Hui wrote: > >> Dear, >> >> Sorry to trouble you. >> >> I'm confused by the following code in bio.c/bio_split: >> ------------------------------------- >> struct bio *bio_split(struct bio *bio, int sectors, >> ... >> if (bio_flagged(bio, BIO_TRACE_COMPLETION)) >> bio_set_flag(bio, BIO_TRACE_COMPLETION); >> ... >> } >> EXPORT_SYMBOL(bio_split); >> ------------------------------------ >> >> I think it maybe flag on the new split set, right? > > Goldwyn Rodrigues posted a patch to fix this a couple of > months ago. > Jens - can you apply that? Do you need it resent? > > https://www.mail-archive.com/linux-block@vger.kernel.org/msg16039.html I got it now, applied. Thanks. -- Jens Axboe