summaryrefslogtreecommitdiff
path: root/include/target/iscsi
diff options
context:
space:
mode:
authorWenchao Hao <haowenchao2@huawei.com>2023-05-15 10:01:55 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-05-17 04:56:35 +0300
commit6ca9818d1624e136a76ae8faedb6b6c95ca66903 (patch)
treeabb9dc169e3d923aed3f0e536db73331014da672 /include/target/iscsi
parent4e81a6cba517cb33584308a331f14f5e3fec369b (diff)
downloadlinux-6ca9818d1624e136a76ae8faedb6b6c95ca66903.tar.xz
scsi: Revert "scsi: core: Do not increase scsi_device's iorequest_cnt if dispatch failed"
The "atomic_inc(&cmd->device->iorequest_cnt)" in scsi_queue_rq() would cause kernel panic because cmd->device may be freed after returning from scsi_dispatch_cmd(). This reverts commit cfee29ffb45b1c9798011b19d454637d1b0fe87d. Signed-off-by: Wenchao Hao <haowenchao2@huawei.com> Reported-by: Ming Lei <ming.lei@redhat.com> Closes: https://lore.kernel.org/r/ZF+zB+bB7iqe0wGd@ovpn-8-17.pek2.redhat.com Link: https://lore.kernel.org/r/20230515070156.1790181-2-haowenchao2@huawei.com Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target/iscsi')
0 files changed, 0 insertions, 0 deletions