block: allow specifying size for extra command data
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Jan 2017 16:51:45 +0000 (09:51 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commit6d247d7f71d1fa4b66a5f4da7b1daa21510d529b
tree449921f154b9bd0176453478fdd7a8c6911be5ad
parent5ea708d15a928f7a479987704203616d3274c03b
block: allow specifying size for extra command data

This mirrors the blk-mq capabilities to allocate extra drivers-specific
data behind struct request by setting a cmd_size field, as well as having
a constructor / destructor for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-flush.c
block/blk-sysfs.c
include/linux/blkdev.h