Saeed Bishara wrote:
I found that the flow of adding device using scsi_scan_target ends
with different refcount of the sdev than using the scsi_add_device,
in the former one the refcount is less by 1. the scsi_scan_target
calls scsi_device_put, but there is no analogous put in the
scsi_add_device function.
This was changed in Linux 2.6.14-rcX:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=146f7262ee0ec7fc6882f06e5fcb13883308073c
The commit log also tells how to properly use scsi_add_device() before
and after that change.
--
Stefan Richter
-=====-=-=-= =-=- =---=
http://arcgraph.de/sr/
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html