Here are some patches that I have been using to test the lun reset code, and the run a test where the initiator is brought up and destroyed over and over. I am not sure if the first patch is right. It fixes the problem where the scst completion/fr_destructor is not called, so the target did remove the command from its internal accounting. It also fixes a frame leak. However, I am not sure if it is always safe to call fc_frame_free where I added the call. |