Re: [gentoo-dev] dm-crypt reordering BIOs across barriers?

2013-06-08 Thread Sergei Trofimovich
On Fri, 07 Jun 2013 23:47:33 -0400 Richard Yao r...@gentoo.org wrote: When you use dm-crypt, block IO requests to a dm-* device will invoke dm_request_fn() - map_request() - crypt_map(). If a BIO is a write barrier, crypt_map() will return DM_MAPIO_REMAPPED to map_request(), which will

Re: [gentoo-dev] dm-crypt reordering BIOs across barriers?

2013-06-08 Thread Richard Yao
On 06/08/2013 02:11 AM, Sergei Trofimovich wrote: On Fri, 07 Jun 2013 23:47:33 -0400 Richard Yao r...@gentoo.org wrote: When you use dm-crypt, block IO requests to a dm-* device will invoke dm_request_fn() - map_request() - crypt_map(). If a BIO is a write barrier, crypt_map() will return

[gentoo-dev] dm-crypt reordering BIOs across barriers?

2013-06-07 Thread Richard Yao
When you use dm-crypt, block IO requests to a dm-* device will invoke dm_request_fn() - map_request() - crypt_map(). If a BIO is a write barrier, crypt_map() will return DM_MAPIO_REMAPPED to map_request(), which will immediately queue it to the device. If a few dozen IOs are queued in rapid