diff options
author | Sukadev Bhattiprolu <sukadev@linux.ibm.com> | 2021-02-10 17:41:43 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-11 14:33:14 -0800 |
commit | d4083d3c00f60a09ad82e3bf17ff57fec69c8aa6 (patch) | |
tree | 0e17c32a81dccc057ec9353da21181550e3aeb19 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1d1be91254bbdd189796041561fd430f7553bb88 (diff) |
ibmvnic: Set to CLOSED state even on error
If set_link_state() fails for any reason, we still cleanup the adapter
state and cannot recover from a partial close anyway. So set the adapter
to CLOSED state. That way if a new soft/hard reset is processed, the
adapter will remain in the CLOSED state until the next ibmvnic_open().
Fixes: 01d9bd792d16 ("ibmvnic: Reorganize device close")
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Reported-by: Abdul Haleem <abdhalee@in.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions