[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1zifbokpv.fsf@oracle.com>
Date: Wed, 19 Apr 2017 22:51:08 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Dmitry Monakhov <dmonakhov@...nvz.org>
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
martin.petersen@...cle.com
Subject: Re: [PATCH 8/9] bio: add bvec_iter rewind API
Dmitry Monakhov <dmonakhov@...nvz.org> writes:
Dmitry,
> Some ->bi_end_io handlers (for example: pi_verify or decrypt handlers)
> need to know original data vector, but after bio traverse io-stack it
> may be advanced, splited and relocated many times so it is hard to
> guess original iterator. Let's add 'bi_done' conter which accounts
> number of bytes iterator was advanced during it's evolution. Later
> end_io handler may easily restore original iterator by rewinding
> iterator to iter->bi_done.
Originally, the original integrity bip was immutable. Any slicing and
dicing was exclusively done on clones. And therefore the original bip
was always suitable for use with verify.
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists