Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119001
b: refs/heads/master
c: 3765138
h: refs/heads/master
i:
  118999: a5b8f16
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Nov 5, 2008
1 parent 3523646 commit 62f7a9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 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: 88f2a977870af655296a682fe2a58c822cd25bb2
refs/heads/master: 3765138ae946e6e29b22bf15a9647c600c232639
17 changes: 6 additions & 11 deletions trunk/drivers/s390/scsi/zfcp_fsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,6 @@ static struct zfcp_fsf_req *zfcp_fsf_req_create(struct zfcp_adapter *adapter,
static int zfcp_fsf_req_send(struct zfcp_fsf_req *req)
{
struct zfcp_adapter *adapter = req->adapter;
struct zfcp_qdio_queue *req_q = &adapter->req_q;
unsigned long flags;
int idx;

Expand All @@ -780,19 +779,15 @@ static int zfcp_fsf_req_send(struct zfcp_fsf_req *req)
list_add_tail(&req->list, &adapter->req_list[idx]);
spin_unlock_irqrestore(&adapter->req_list_lock, flags);

req->qdio_outb_usage = atomic_read(&req_q->count);
req->qdio_outb_usage = atomic_read(&adapter->req_q.count);
req->issued = get_clock();
if (zfcp_qdio_send(req)) {
/* Queues are down..... */
del_timer(&req->timer);
spin_lock(&adapter->req_list_lock);
zfcp_reqlist_remove(adapter, req);
spin_unlock(&adapter->req_list_lock);
/* undo changes in request queue made for this request */
atomic_add(req->sbal_number, &req_q->count);
req_q->first -= req->sbal_number;
req_q->first += QDIO_MAX_BUFFERS_PER_Q;
req_q->first %= QDIO_MAX_BUFFERS_PER_Q; /* wrap */
spin_lock_irqsave(&adapter->req_list_lock, flags);
/* lookup request again, list might have changed */
if (zfcp_reqlist_find_safe(adapter, req))
zfcp_reqlist_remove(adapter, req);
spin_unlock_irqrestore(&adapter->req_list_lock, flags);
zfcp_erp_adapter_reopen(adapter, 0, 116, req);
return -EIO;
}
Expand Down

0 comments on commit 62f7a9d

Please sign in to comment.