mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[block] Use intfs_shutdown() when shutting down multiple interfaces
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -171,8 +171,7 @@ static void sandev_command_expired ( struct retry_timer *timer,
|
|||||||
static void sandev_restart ( struct san_device *sandev, int rc ) {
|
static void sandev_restart ( struct san_device *sandev, int rc ) {
|
||||||
|
|
||||||
/* Restart block device interface */
|
/* Restart block device interface */
|
||||||
intf_nullify ( &sandev->command ); /* avoid potential loops */
|
intfs_restart ( rc, &sandev->command, &sandev->block, NULL );
|
||||||
intf_restart ( &sandev->block, rc );
|
|
||||||
|
|
||||||
/* Close any outstanding command */
|
/* Close any outstanding command */
|
||||||
sandev_command_close ( sandev, rc );
|
sandev_command_close ( sandev, rc );
|
||||||
|
|||||||
Reference in New Issue
Block a user