IB/mthca: Change command token on timeout
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Thu, 19 Jul 2007 11:28:49 +0000 (14:28 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sat, 21 Jul 2007 04:19:43 +0000 (21:19 -0700)
commitc1f74958dbd19f6a837d887ed416688c063af529
tree57c9763e30d93e9a9f22b059ee65a655769c3726
parentbd631048116df40837667a72c578b170c906dd30
IB/mthca: Change command token on timeout

The FW command token is currently only updated on a command completion
event. This means that on command timeout, the same token will be
reused for new command, which results in a mess if the timed out
command *does* eventually complete.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c