diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-27 03:46:29 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-27 17:08:35 -0500 |
commit | 82ed4db499b8598f16f8871261bff088d6b0597f (patch) | |
tree | e1cc0a433bf5ae2b9723837291617bdfeeb61816 /drivers/message/fusion/mptsas.c | |
parent | 8ae94eb65be9425af4d57a4f4cfebfdf03081e93 (diff) |
block: split scsi_request out of struct request
And require all drivers that want to support BLOCK_PC to allocate it
as the first thing of their private data. To support this the legacy
IDE and BSG code is switched to set cmd_size on their queues to let
the block layer allocate the additional space.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 7ee1667acde4..b8c4b2ba7519 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -2320,10 +2320,10 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
2320 | SmpPassthroughReply_t *smprep; | 2320 | SmpPassthroughReply_t *smprep; |
2321 | 2321 | ||
2322 | smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; | 2322 | smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; |
2323 | memcpy(req->sense, smprep, sizeof(*smprep)); | 2323 | memcpy(scsi_req(req)->sense, smprep, sizeof(*smprep)); |
2324 | req->sense_len = sizeof(*smprep); | 2324 | scsi_req(req)->sense_len = sizeof(*smprep); |
2325 | req->resid_len = 0; | 2325 | scsi_req(req)->resid_len = 0; |
2326 | rsp->resid_len -= smprep->ResponseDataLength; | 2326 | scsi_req(rsp)->resid_len -= smprep->ResponseDataLength; |
2327 | } else { | 2327 | } else { |
2328 | printk(MYIOC_s_ERR_FMT | 2328 | printk(MYIOC_s_ERR_FMT |
2329 | "%s: smp passthru reply failed to be returned\n", | 2329 | "%s: smp passthru reply failed to be returned\n", |