Re: [PATCH 0/3] Add disk hotswap support to libata

From: Lukasz Kosewski
Date: Thu Jul 21 2005 - 17:16:21 EST


Michael Tokarev wrote:
echo -n 1 > /sys/.../hostA/targetA:B:C/A:B:C:D/delete
still works. I think.
And (again, I think) this same problem exists with 2.6.11 as well.
At least, I wasn't able to remove-single-device even once (I discovered
this mechanism only recently, haven't tried it with other kernels).

You're both correct and incorrect based on my testing; in 2.6.11.12, I have no problems.

However, in 2.6.13-rc1-mm1, you're right that echoing 1 into the delete node does remove the device.

It seems that there is some issue with the 'scsi_device_lookup' function then?

I'd have to debug further.

Luke Kosewski
Human Cannonball
Net Integration Technologies
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/