mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
ib_srpt: Sync information unit memory only once
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5351 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1856,14 +1856,14 @@ srpt_handle_new_iu(struct srpt_rdma_ch *ch,
|
||||
BUG_ON(!ch);
|
||||
BUG_ON(!recv_ioctx);
|
||||
|
||||
if (unlikely(ch->state == CH_CONNECTING))
|
||||
goto push;
|
||||
|
||||
ib_dma_sync_single_for_cpu(ch->sport->sdev->device,
|
||||
recv_ioctx->ioctx.dma, srp_max_req_size,
|
||||
DMA_FROM_DEVICE);
|
||||
|
||||
srp_cmd = recv_ioctx->ioctx.buf;
|
||||
if (unlikely(ch->state == CH_CONNECTING))
|
||||
goto push;
|
||||
|
||||
if (srp_cmd->opcode == SRP_CMD || srp_cmd->opcode == SRP_TSK_MGMT) {
|
||||
send_ioctx = srpt_get_send_ioctx(ch);
|
||||
if (unlikely(!send_ioctx))
|
||||
|
||||
Reference in New Issue
Block a user