block: allow specifying size for extra command data
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Jan 2017 16:51:45 +0000 (09:51 -0700)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:17 +0000 (15:38 -0500)
commit90e45d2f4f04dab101e41c262bf39c9a2e58e712
tree5f7fc5d31e0255c36119812af0a582bd8ad84cfc
parentd98e40eb74d725e0bccd9ffd97c07fa0514c212a
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>
(cherry picked from commit 6d247d7f71d1fa4b66a5f4da7b1daa21510d529b)
block/blk-core.c
block/blk-flush.c
block/blk-sysfs.c
include/linux/blkdev.h