Hi, Petr Olivka wrote:
> Hi !
>
> Im using CF card reader Sandisk on Dell D600. With 2.6-test7 I have
> problems:
>
> When is SCSI compiled in kernel and I plug in card reader, usb-storage
> use at first time sda:sda1. I remove it and on next usage assign
> usb-storage sdb: sdb1, next time sdc:, sdd:, ....
>
This should help. Apparently, the sense of this test was inverted when the
code was converted to use atomic operations.
diff -Nru a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
--- a/drivers/scsi/scsi_sysfs.c Fri Oct 10 13:32:01 2003
+++ b/drivers/scsi/scsi_sysfs.c Fri Oct 10 13:32:01 2003
@@ -412,7 +412,7 @@
set_bit(SDEV_DEL, &sdev->sdev_state);
if (sdev->host->hostt->slave_destroy)
sdev->host->hostt->slave_destroy(sdev);
- if (atomic_read(&sdev->access_count))
+ if (!atomic_read(&sdev->access_count))
device_del(&sdev->sdev_gendev);
up_write(&class->subsys.rwsem);
}
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
* knghtbrd does the ET thing
<knghtbrd> anybody got a speak-n-spell?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel