[PATCH 05/13] uas: handle reset() while a TMF is active

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A reset in progress obsoletes all TMFs.

Signed-off-by: Oliver Neukum <oneukum@xxxxxxxx>
---
 drivers/usb/storage/uas.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index e69ef2b..4c1d6c3 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -1104,6 +1104,8 @@ static int uas_pre_reset(struct usb_interface *intf)
 		return 1;
 	}
 
+	/* no need to wait for a TMF */
+	complete(&devinfo->deathknell);
 	uas_free_streams(devinfo);
 
 	return 0;
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux