dm io: use slab for struct io
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:51:57 +0000 (23:51 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:51:57 +0000 (23:51 +0000)
commit952b355760c196ec014dd0b6878f85a11496e3da
tree0a6907fa6dce2bac8afdc2efea774f19bdbb9a17
parent542da317668c35036e8471822a564b609d05af66
dm io: use slab for struct io

Allocate "struct io" from a slab.

This patch changes dm-io, so that "struct io" is allocated from a slab cache.
It used to be allocated with kmalloc. Allocating from a slab will be needed
for the next patch, because it requires a special alignment of "struct io"
and kmalloc cannot meet this alignment.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-io.c
drivers/md/dm.c
drivers/md/dm.h