mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
[SCSI] Silencing 'killing requests for dead queue'
When we tear down a device we try to flush all outstanding commands in scsi_free_queue(). However the check in scsi_request_fn() is imperfect as it only signals that we _might start_ aborting commands, not that we've actually aborted some. So move the printk inside the scsi_kill_request function, this will also give us a hint about which commands are aborted. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
4e6c82b361
commit
745718132c
@ -1409,6 +1409,8 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
|
||||
|
||||
blk_start_request(req);
|
||||
|
||||
scmd_printk(KERN_INFO, cmd, "killing request\n");
|
||||
|
||||
sdev = cmd->device;
|
||||
starget = scsi_target(sdev);
|
||||
shost = sdev->host;
|
||||
@ -1490,7 +1492,6 @@ static void scsi_request_fn(struct request_queue *q)
|
||||
struct request *req;
|
||||
|
||||
if (!sdev) {
|
||||
printk("scsi: killing requests for dead queue\n");
|
||||
while ((req = blk_peek_request(q)) != NULL)
|
||||
scsi_kill_request(req, q);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user