ibmvnic: enhance resetting status check during module exit
authorLijun Pan <ljp@linux.ibm.com>
Mon, 23 Nov 2020 19:35:47 +0000 (13:35 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Nov 2020 00:28:34 +0000 (16:28 -0800)
commit3ada288150fb17ab3fcce2cf5fce20461f86b2ee
treed9ca6e0060d3280d3020aaa94fd57fc137d51617
parent0e435befaea45f7ea58682eecab5e37e05b2ce65
ibmvnic: enhance resetting status check during module exit

Based on the discussion with Sukadev Bhattiprolu and Dany Madden,
we believe that checking adapter->resetting bit is preferred
since RESETTING state flag is not as strict as resetting bit.
RESETTING state flag is removed since it is verbose now.

Fixes: 7d7195a026ba ("ibmvnic: Do not process device remove during device reset")
Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h