mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'for-4.11/next' into for-4.11/linus-merge
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
commit
818551e2b2
171 changed files with 2494 additions and 2850 deletions
|
|
@ -4,6 +4,7 @@ menuconfig TARGET_CORE
|
|||
depends on SCSI && BLOCK
|
||||
select CONFIGFS_FS
|
||||
select CRC_T10DIF
|
||||
select BLK_SCSI_REQUEST # only for scsi_command_size_tbl..
|
||||
default n
|
||||
help
|
||||
Say Y or M here to enable the TCM Storage Engine and ConfigFS enabled
|
||||
|
|
|
|||
|
|
@ -1005,7 +1005,8 @@ pscsi_execute_cmd(struct se_cmd *cmd)
|
|||
scsi_command_size(cmd->t_task_cdb));
|
||||
|
||||
req = blk_get_request(pdv->pdv_sd->request_queue,
|
||||
(cmd->data_direction == DMA_TO_DEVICE),
|
||||
cmd->data_direction == DMA_TO_DEVICE ?
|
||||
REQ_OP_SCSI_OUT : REQ_OP_SCSI_IN,
|
||||
GFP_KERNEL);
|
||||
if (IS_ERR(req)) {
|
||||
pr_err("PSCSI: blk_get_request() failed\n");
|
||||
|
|
@ -1013,7 +1014,7 @@ pscsi_execute_cmd(struct se_cmd *cmd)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
blk_rq_set_block_pc(req);
|
||||
scsi_req_init(req);
|
||||
|
||||
if (sgl) {
|
||||
ret = pscsi_map_sg(cmd, sgl, sgl_nents, req);
|
||||
|
|
@ -1023,10 +1024,8 @@ pscsi_execute_cmd(struct se_cmd *cmd)
|
|||
|
||||
req->end_io = pscsi_req_done;
|
||||
req->end_io_data = cmd;
|
||||
req->cmd_len = scsi_command_size(pt->pscsi_cdb);
|
||||
req->cmd = &pt->pscsi_cdb[0];
|
||||
req->sense = &pt->pscsi_sense[0];
|
||||
req->sense_len = 0;
|
||||
scsi_req(req)->cmd_len = scsi_command_size(pt->pscsi_cdb);
|
||||
scsi_req(req)->cmd = &pt->pscsi_cdb[0];
|
||||
if (pdv->pdv_sd->type == TYPE_DISK)
|
||||
req->timeout = PS_TIMEOUT_DISK;
|
||||
else
|
||||
|
|
@ -1075,7 +1074,7 @@ static void pscsi_req_done(struct request *req, int uptodate)
|
|||
struct pscsi_plugin_task *pt = cmd->priv;
|
||||
|
||||
pt->pscsi_result = req->errors;
|
||||
pt->pscsi_resid = req->resid_len;
|
||||
pt->pscsi_resid = scsi_req(req)->resid_len;
|
||||
|
||||
cmd->scsi_status = status_byte(pt->pscsi_result) << 1;
|
||||
if (cmd->scsi_status) {
|
||||
|
|
@ -1096,6 +1095,7 @@ static void pscsi_req_done(struct request *req, int uptodate)
|
|||
break;
|
||||
}
|
||||
|
||||
memcpy(pt->pscsi_sense, scsi_req(req)->sense, TRANSPORT_SENSE_BUFFER);
|
||||
__blk_put_request(req->q, req);
|
||||
kfree(pt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue