diff options
author | Subhash Jadavani <[email protected]> | 2014-09-25 15:32:20 +0300 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2014-10-01 13:11:08 +0200 |
commit | 693ad5ba135d40b1379e40e928123681e2aa2c50 (patch) | |
tree | 6a656a66b3f8786bddaf3c600a7820128a875285 /lib/memory-notifier-error-inject.c | |
parent | 45341ca3fcacc8720c425e757a627ef81b65b1ee (diff) |
scsi: don't add scsi_device if its already visible
If LLD has added scsi device (by calling scsi_add_device) before scheduling
async scsi_scan_host then scsi_finish_async_scan() will end up calling
scsi_sysfs_add_sdev for scsi device which was already added by LLD.
This patch fixes this issue by skipping the call to scsi_sysfs_add_sdev()
if it's already visible to rest of the kernel.
Signed-off-by: Subhash Jadavani <[email protected]>
Signed-off-by: Dolev Raviv <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions