aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 34630a611f61..708e9e90678f 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -1288,11 +1288,17 @@ static int st_flush(struct file *filp, fl_owner_t id)
1288 cmd[0] = WRITE_FILEMARKS; 1288 cmd[0] = WRITE_FILEMARKS;
1289 cmd[4] = 1 + STp->two_fm; 1289 cmd[4] = 1 + STp->two_fm;
1290 1290
1291 SRpnt = st_do_scsi(NULL, STp, cmd, 0, DMA_NONE, 1291 SRpnt = st_allocate_request(STp);
1292 STp->device->request_queue->rq_timeout,
1293 MAX_WRITE_RETRIES, 1);
1294 if (!SRpnt) { 1292 if (!SRpnt) {
1295 result = (STp->buffer)->syscall_result; 1293 result = STp->buffer->syscall_result;
1294 goto out;
1295 }
1296
1297 result = st_scsi_kern_execute(SRpnt, cmd, DMA_NONE, NULL, 0,
1298 STp->device->request_queue->rq_timeout,
1299 MAX_WRITE_RETRIES);
1300 if (result) {
1301 st_release_request(SRpnt);
1296 goto out; 1302 goto out;
1297 } 1303 }
1298 1304