]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f206e1195bee2d60076392916cfff05737cd2ed
treed9ca6e0060d3280d3020aaa94fd57fc137d51617
parenta4c229cf77a5ba1d6c41fab287ebb18fcf16b6b7
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: 142915d0f5f9 ("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