Files
ipxe/src/core
Michael Brown f450c75dad [interface] Unplug interface before calling intf_close() in intf_shutdown()
The call to intf_close() may result in the original interface being
reopened.  For example: when reading the capacity of a 2TB+ disk via
iSCSI, the SCSI layer will respond to the intf_close() from the READ
CAPACITY (10) command by immediately issuing a READ CAPACITY (16)
command.  The iSCSI layer happens to reuse the same interface for the
new command (since it allows only a single concurrent command).

Currently, intf_shutdown() unplugs the interface after the call to
intf_close() returns.  In the above scenario, this results in
unplugging the just-reopened interface.

Fix by transferring the interface destination (and its reference) to a
temporary interface, and so effectively performing the unplug before
making the call to intf_close().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2017-01-25 11:29:29 +00:00
..
2016-07-11 14:05:18 +01:00
2016-03-22 16:18:42 +00:00
2016-03-22 08:44:32 +00:00
2005-03-08 18:53:11 +00:00
2016-07-29 16:04:09 +01:00
2010-04-19 23:43:39 +01:00
2016-07-29 16:04:09 +01:00
2016-03-22 16:18:42 +00:00