storvsc: use cmd_size to allocate per-command data
authorChristoph Hellwig <hch@lst.de>
Tue, 30 Dec 2014 04:05:09 +0000 (20:05 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:24 +0000 (15:44 +0100)
commitead3700d893654d440edcb66fb3767a0c0db54cf
tree617c6093b91dfb01a7da543cab5864d71f9c820a
parentd454c91f74fcefce5cd545cf98c565ed882bf81a
storvsc: use cmd_size to allocate per-command data

STORVSC uses its own momory pool to manage device request data.  However,
the SCSI layer already has a mechanisim for allocating additional memory
for each command issued to device driver. This patch removes the memory
pool in STORVSC and makes it use SCSI layer to allocate memory for device
request data.

Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/storvsc_drv.c