]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Update state variable for adminq subtask
authorSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Sun, 27 Aug 2017 22:07:47 +0000 (15:07 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:25 +0000 (14:15 -0700)
commit78accbdfa908cfe0b14654d636412befbdf08ab4
tree2bbd9ba13e15986c8b8cf188f9171d383b2ea6c9
parentc18daea89fde30ab71c2dd4249bb7a56dc9282e1
i40e: Update state variable for adminq subtask

During NVM update, state machine gets into unrecoverable state because
i40e_clean_adminq_subtask can get scheduled after the admin queue
command but before other state variables are updated. This causes
incorrect input to i40e_nvmupd_check_wait_event and state transitions
don't happen.

This fix updates the state variables so that adminq_subtask will have
accurate information whenever it gets scheduled.

Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26785018
(cherry picked from commit 167d52edc4991e81012ef571643d0307aa2bb916)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_nvm.c