Lines 375-381
static void dereference_bio_ctx (struct
Link Here
|
375 |
if (!atomic_dec_and_test (&bc->ref_count)) |
375 |
if (!atomic_dec_and_test (&bc->ref_count)) |
376 |
return; |
376 |
return; |
377 |
|
377 |
|
|
|
378 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) |
378 |
bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error); |
379 |
bio_endio (bc->orig_bio, bc->orig_bio->bi_size, bc->error); |
|
|
380 |
#else |
381 |
bio_endio (bc->orig_bio, bc->orig_bio->bi_size); |
382 |
#endif |
383 |
|
379 |
mempool_free (bc, tc->bio_ctx_pool); |
384 |
mempool_free (bc, tc->bio_ctx_pool); |
380 |
} |
385 |
} |