target: don't allocate bio headroom in iblock
authorChristoph Hellwig <hch@infradead.org>
Wed, 21 Dec 2011 19:20:23 +0000 (14:20 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 18 Jan 2012 08:28:02 +0000 (08:28 +0000)
We never embedd the bio into a structure, so there is no need to allocate
64 bytes of headroom per bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c

index cc8e6b5..628e877 100644 (file)
@@ -129,7 +129,7 @@ static struct se_device *iblock_create_virtdevice(
        /*
         * These settings need to be made tunable..
         */
-       ib_dev->ibd_bio_set = bioset_create(32, 64);
+       ib_dev->ibd_bio_set = bioset_create(32, 0);
        if (!ib_dev->ibd_bio_set) {
                pr_err("IBLOCK: Unable to create bioset()\n");
                return ERR_PTR(-ENOMEM);