scsi: ibmvscsis: Code cleanup of print statements
[mkp: applied by hand] Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com> Signed-off-by: Michael Cyr <mikecyr@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
712db3eb2c
commit
812902159d
|
@ -1606,8 +1606,6 @@ static void ibmvscsis_send_messages(struct scsi_info *vscsi)
|
||||||
|
|
||||||
if (!(vscsi->flags & RESPONSE_Q_DOWN)) {
|
if (!(vscsi->flags & RESPONSE_Q_DOWN)) {
|
||||||
list_for_each_entry_safe(cmd, nxt, &vscsi->waiting_rsp, list) {
|
list_for_each_entry_safe(cmd, nxt, &vscsi->waiting_rsp, list) {
|
||||||
pr_debug("send_messages cmd %p\n", cmd);
|
|
||||||
|
|
||||||
iue = cmd->iue;
|
iue = cmd->iue;
|
||||||
|
|
||||||
crq->valid = VALID_CMD_RESP_EL;
|
crq->valid = VALID_CMD_RESP_EL;
|
||||||
|
@ -2556,10 +2554,6 @@ static void ibmvscsis_parse_cmd(struct scsi_info *vscsi,
|
||||||
|
|
||||||
srp->lun.scsi_lun[0] &= 0x3f;
|
srp->lun.scsi_lun[0] &= 0x3f;
|
||||||
|
|
||||||
pr_debug("calling submit_cmd, se_cmd %p, lun 0x%llx, cdb 0x%x, attr:%d\n",
|
|
||||||
&cmd->se_cmd, scsilun_to_int(&srp->lun), (int)srp->cdb[0],
|
|
||||||
attr);
|
|
||||||
|
|
||||||
rc = target_submit_cmd(&cmd->se_cmd, nexus->se_sess, srp->cdb,
|
rc = target_submit_cmd(&cmd->se_cmd, nexus->se_sess, srp->cdb,
|
||||||
cmd->sense_buf, scsilun_to_int(&srp->lun),
|
cmd->sense_buf, scsilun_to_int(&srp->lun),
|
||||||
data_len, attr, dir, 0);
|
data_len, attr, dir, 0);
|
||||||
|
@ -3144,8 +3138,6 @@ static int ibmvscsis_rdma(struct ibmvscsis_cmd *cmd, struct scatterlist *sg,
|
||||||
long tx_len;
|
long tx_len;
|
||||||
long rc = 0;
|
long rc = 0;
|
||||||
|
|
||||||
pr_debug("rdma: dir %d, bytes 0x%x\n", dir, bytes);
|
|
||||||
|
|
||||||
if (bytes == 0)
|
if (bytes == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -3197,9 +3189,6 @@ static int ibmvscsis_rdma(struct ibmvscsis_cmd *cmd, struct scatterlist *sg,
|
||||||
/* write to client */
|
/* write to client */
|
||||||
struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
|
struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
|
||||||
|
|
||||||
if (!READ_CMD(srp->cdb))
|
|
||||||
print_hex_dump_bytes(" data:", DUMP_PREFIX_NONE,
|
|
||||||
sg_virt(sgp), buf_len);
|
|
||||||
/* The h_copy_rdma will cause phyp, running in another
|
/* The h_copy_rdma will cause phyp, running in another
|
||||||
* partition, to read memory, so we need to make sure
|
* partition, to read memory, so we need to make sure
|
||||||
* the data has been written out, hence these syncs.
|
* the data has been written out, hence these syncs.
|
||||||
|
@ -3324,12 +3313,9 @@ cmd_work:
|
||||||
rc = ibmvscsis_trans_event(vscsi, crq);
|
rc = ibmvscsis_trans_event(vscsi, crq);
|
||||||
} else if (vscsi->flags & TRANS_EVENT) {
|
} else if (vscsi->flags & TRANS_EVENT) {
|
||||||
/*
|
/*
|
||||||
* if a tranport event has occurred leave
|
* if a transport event has occurred leave
|
||||||
* everything but transport events on the queue
|
* everything but transport events on the queue
|
||||||
*/
|
*
|
||||||
pr_debug("handle_crq, ignoring\n");
|
|
||||||
|
|
||||||
/*
|
|
||||||
* need to decrement the queue index so we can
|
* need to decrement the queue index so we can
|
||||||
* look at the elment again
|
* look at the elment again
|
||||||
*/
|
*/
|
||||||
|
@ -3695,8 +3681,6 @@ static void ibmvscsis_release_cmd(struct se_cmd *se_cmd)
|
||||||
se_cmd);
|
se_cmd);
|
||||||
struct scsi_info *vscsi = cmd->adapter;
|
struct scsi_info *vscsi = cmd->adapter;
|
||||||
|
|
||||||
pr_debug("release_cmd %p, flags %d\n", se_cmd, cmd->flags);
|
|
||||||
|
|
||||||
spin_lock_bh(&vscsi->intr_lock);
|
spin_lock_bh(&vscsi->intr_lock);
|
||||||
/* Remove from active_q */
|
/* Remove from active_q */
|
||||||
list_move_tail(&cmd->list, &vscsi->waiting_rsp);
|
list_move_tail(&cmd->list, &vscsi->waiting_rsp);
|
||||||
|
@ -3716,9 +3700,6 @@ static int ibmvscsis_write_pending(struct se_cmd *se_cmd)
|
||||||
struct iu_entry *iue = cmd->iue;
|
struct iu_entry *iue = cmd->iue;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
pr_debug("write_pending, se_cmd %p, length 0x%x\n",
|
|
||||||
se_cmd, se_cmd->data_length);
|
|
||||||
|
|
||||||
rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma,
|
rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma,
|
||||||
1, 1);
|
1, 1);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
@ -3757,9 +3738,6 @@ static int ibmvscsis_queue_data_in(struct se_cmd *se_cmd)
|
||||||
uint len = 0;
|
uint len = 0;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
pr_debug("queue_data_in, se_cmd %p, length 0x%x\n",
|
|
||||||
se_cmd, se_cmd->data_length);
|
|
||||||
|
|
||||||
rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma, 1,
|
rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma, 1,
|
||||||
1);
|
1);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
|
Loading…
Reference in New Issue