Re: [PATCH 1/2] block: Introduce BIO_ENDIO_FREE for bio flags

2015-11-11 Thread Baolin Wang
On 12 November 2015 at 01:54, Mike Snitzer wrote: > On Wed, Nov 11 2015 at 4:31am -0500, > Baolin Wang wrote: > >> When we use dm-crypt to decrypt block data, it will decrypt the block data >> in endio() when one IO is completed. In this situation we don't want the >> cloned bios is freed before

Re: [PATCH 1/2] block: Introduce BIO_ENDIO_FREE for bio flags

2015-11-11 Thread Mike Snitzer
On Wed, Nov 11 2015 at 4:31am -0500, Baolin Wang wrote: > When we use dm-crypt to decrypt block data, it will decrypt the block data > in endio() when one IO is completed. In this situation we don't want the > cloned bios is freed before calling the endio(). > > Thus introduce 'BIO_ENDIO_FREE'

[PATCH 1/2] block: Introduce BIO_ENDIO_FREE for bio flags

2015-11-11 Thread Baolin Wang
When we use dm-crypt to decrypt block data, it will decrypt the block data in endio() when one IO is completed. In this situation we don't want the cloned bios is freed before calling the endio(). Thus introduce 'BIO_ENDIO_FREE' flag to support the request handling for dm-crypt, this flag will en