Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124659
b: refs/heads/master
c: 3c0bf16
h: refs/heads/master
i:
  124657: 2aeeebd
  124655: b4c6b88
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Dec 29, 2008
1 parent f710902 commit e86d9c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0944a721ba5c2535b615f06afd3aaa2f18c69cb9
refs/heads/master: 3c0bf16c63a6ef69c9b3e90591e6179deacfa8f7
12 changes: 8 additions & 4 deletions trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -3088,10 +3088,14 @@ static int set_location(struct scsi_tape *STp, unsigned int block, int partition
timeout = STp->device->request_queue->rq_timeout;
}

SRpnt = st_do_scsi(NULL, STp, scmd, 0, DMA_NONE,
timeout, MAX_READY_RETRIES, 1);
SRpnt = st_allocate_request(STp);
if (!SRpnt)
return (STp->buffer)->syscall_result;
return STp->buffer->syscall_result;

result = st_scsi_kern_execute(SRpnt, scmd, DMA_NONE, NULL, 0,
timeout, MAX_READY_RETRIES);
if (result)
goto out;

STps->drv_block = STps->drv_file = (-1);
STps->eof = ST_NOEOF;
Expand All @@ -3116,7 +3120,7 @@ static int set_location(struct scsi_tape *STp, unsigned int block, int partition
STps->drv_block = STps->drv_file = 0;
result = 0;
}

out:
st_release_request(SRpnt);
SRpnt = NULL;

Expand Down

0 comments on commit e86d9c0

Please sign in to comment.