Kent Overstreet 395c72a707 block: Generalized bio pool freeing
With the old code, when you allocate a bio from a bio pool you have to
implement your own destructor that knows how to find the bio pool the
bio was originally allocated from.

This adds a new field to struct bio (bi_pool) and changes
bio_alloc_bioset() to use it. This makes various bio destructors
unnecessary, so they're then deleted.

v6: Explain the temporary if statement in bio_put

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: NeilBrown <neilb@suse.de>
CC: Alasdair Kergon <agk@redhat.com>
CC: Nicholas Bellinger <nab@linux-iscsi.org>
CC: Lars Ellenberg <lars.ellenberg@linbit.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-09-09 10:35:38 +02:00
..
2012-08-20 13:13:47 -07:00
2012-08-02 13:51:46 -04:00
2012-09-09 10:35:38 +02:00
2012-08-17 09:21:35 +02:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-07-30 09:32:39 -07:00
2012-09-05 19:37:08 -07:00
2012-08-16 20:24:38 +01:00
2012-08-13 14:34:02 +08:00
2012-09-09 10:35:38 +02:00
2012-08-20 13:14:22 -07:00
2012-09-04 13:58:11 -04:00
2012-08-20 11:58:43 +02:00
2012-08-27 17:07:37 -07:00
2012-08-28 10:08:31 +02:00
2012-08-20 13:14:22 -07:00
2012-08-20 13:14:22 -07:00
2012-08-25 17:31:59 -07:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00