SCSI: Silencing 'killing requests for dead queue'
commit30bed43b8963e34783ad597025e06e82f7e2a5ff
authorHannes Reinecke <hare@suse.de>
Wed, 9 Nov 2011 07:39:24 +0000 (9 08:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 17:21:47 +0000 (9 09:21 -0800)
treeb989eed24273c0707c742c75af432eaffd6c5bc4
parenta488d32120a22ca2a2f436ab91947bcb352ee7cf
SCSI: Silencing 'killing requests for dead queue'

commit 745718132c3c7cac98a622b610e239dcd5217f71 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_lib.c