diff options
author | Chuck Ebbert <cebbert@redhat.com> | 2010-01-30 20:28:19 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-01-30 20:28:19 +0100 |
commit | 9e9432c267e4047db98b9d4fba95099c6effcef9 (patch) | |
tree | 4e261dd44d4f5129f64696a87d448ad89c106110 /lib/dec_and_lock.c | |
parent | 1d6165851cd8e3f919d446cd6da35dee44e8837e (diff) | |
download | linux-9e9432c267e4047db98b9d4fba95099c6effcef9.tar.gz linux-9e9432c267e4047db98b9d4fba95099c6effcef9.tar.bz2 linux-9e9432c267e4047db98b9d4fba95099c6effcef9.zip |
block: fix bugs in bio-integrity mempool usage
Fix two bugs in the bio integrity code:
use_bip_pool() always returns 0 because it checks against the wrong limit,
causing the mempool to be used only when regular allocation fails.
When the mempool is used as a fallback we don't free the data properly.
Signed-Off-By: Chuck Ebbert <cebbert@redhat.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions