[dm-devel] [PATCH 3/7] dm-crypt: avoid deadlock in mempools

Mikulas Patocka mpatocka at redhat.com
Fri Feb 13 22:09:37 UTC 2015



On Fri, 13 Feb 2015, Mike Snitzer wrote:

>   * In order to not degrade performance with excessive locking, we try
> - * non-blocking allocations without a mutex first and if it fails, we fallback
> + * non-blocking allocation without a mutex first and if it fails, we fallback
>   * to a blocking allocation with a mutex.
>   */
>  static struct bio *crypt_alloc_buffer(struct dm_crypt_io *io, unsigned size)

There are multiple allocations, so I would leave plural there.

Mikulas




More information about the dm-devel mailing list