Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55242
b: refs/heads/master
c: 801e0ce
h: refs/heads/master
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed May 8, 2007
1 parent c4ae04a commit bc77c8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: 1d589edf9eeb60c9c8e62753d05cf4c8e094e5a7
refs/heads/master: 801e0ced1891a2b8cad1a435c45234a719b3b6bf
17 changes: 8 additions & 9 deletions trunk/drivers/s390/scsi/zfcp_fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4645,23 +4645,22 @@ zfcp_fsf_req_create(struct zfcp_adapter *adapter, u32 fsf_cmd, int req_flags,
fsf_req->adapter = adapter;
fsf_req->fsf_command = fsf_cmd;
INIT_LIST_HEAD(&fsf_req->list);

/* this is serialized (we are holding req_queue-lock of adapter */
if (adapter->req_no == 0)
adapter->req_no++;
fsf_req->req_id = adapter->req_no++;

init_timer(&fsf_req->timer);
zfcp_fsf_req_qtcb_init(fsf_req);

/* initialize waitqueue which may be used to wait on
this request completion */
init_waitqueue_head(&fsf_req->completion_wq);

ret = zfcp_fsf_req_sbal_get(adapter, req_flags, lock_flags);
if(ret < 0) {
if (ret < 0)
goto failed_sbals;
}

/* this is serialized (we are holding req_queue-lock of adapter) */
if (adapter->req_no == 0)
adapter->req_no++;
fsf_req->req_id = adapter->req_no++;

zfcp_fsf_req_qtcb_init(fsf_req);

/*
* We hold queue_lock here. Check if QDIOUP is set and let request fail
Expand Down

0 comments on commit bc77c8a

Please sign in to comment.