I was just trying to remove an equallogic iscsi target drive and when disconnecting the session received the error...
"The session cannot be logged out since a device on that session is currently being used"
I also noticed that the drive in question caused Windows to be unresponsive when doing anything that required the drives to be enumerated, I.e looking in device manager / my computer.
If you have the same issue the fix is pretty simple
- In Disk Management (when it finally loads) right click the disk in question and mark it as offline
- In the iscsi initiator software, now disconnect the sessions.