diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-08-20 15:10:58 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 09:42:41 -0500 |
commit | d3305f3407fa3e9452079ec6cc8379067456e4aa (patch) | |
tree | 8e8abaea070305d25d9de788dd07e5cdbd8b6f83 /drivers/watchdog/ks8695_wdt.c | |
parent | 523eeac6703a995d58918aaf321f128f75c13108 (diff) | |
download | blackbird-op-linux-d3305f3407fa3e9452079ec6cc8379067456e4aa.tar.gz blackbird-op-linux-d3305f3407fa3e9452079ec6cc8379067456e4aa.zip |
[SCSI] libiscsi: don't increment cmdsn if cmd is not sent
We increment session->cmdsn at the top of iscsi_prep_scsi_cmd_pdu, but
if the prep ecb or prep bidi or init_task calls fails then we leave the
session->cmdsn incremented. This moves the cmdsn manipulation to the end
of the function when we know it has succeeded.
It also adds a session->cmdsn--; in queuecommand for if a driver like
bnx2i tries to send a a task from that context but it fails. We do not
have to do this in the xmit thread context because that code will retry
the same task if the initial call fails.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/watchdog/ks8695_wdt.c')
0 files changed, 0 insertions, 0 deletions