Skip to content
Commit e2eb7244 authored by James Bottomley's avatar James Bottomley
Browse files

[SCSI] Fix race between starved list and device removal



scsi_run_queue() examines all SCSI devices that are present on
the starved list. Since scsi_run_queue() unlocks the SCSI host
lock a SCSI device can get removed after it has been removed
from the starved list and before its queue is run. Protect
against that race condition by holding a reference on the
queue while running it.

Reported-by: default avatarChanho Min <chanho.min@lge.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent fec3c1b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment