Re: bad refcount of the sdev when using scsi_device_add

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux