scsi_requeue_command and dropping reference to sdev_gendev

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

 



Hi :

I am looking at the latest upstream code and I see a potential issue :

- scsi_requeue_command() drops reference to scsi_device->sdev_gendev in
scsi_unprep_request->scsi_put_command()->__scsi_put_command(). This can
trigger the cleanup routine scsi_device_dev_release_usercontext() that
will deallocate the sdev->request_queue in blk_put_queue() call. This can
cause potential problems in scsi_requeue_command() when it calls
scsi_run_queue().

Am I missing something here?

Any suggestion will be greatly appreciated.

Thanks,
Ani
--
To unsubscribe from this list: 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