/* scsi_flush_work - Flush a Scsi_Host's workqueue. @shost: Pointer to Scsi_Host.  */
void scsi_flush_work(struct Scsi_Host *shost)
/* scsi_flush_work - Flush a Scsi_Host's workqueue. @shost: Pointer to Scsi_Host.  */
void scsi_flush_work(struct Scsi_Host *shost)
{
	if (!shost->work_q) {
		printk(KERN_ERR
			"ERROR: Scsi host '%s' attempted to flush scsi-work, "
			"when no workqueue created.\n", shost->hostt->name);
		dump_stack();
		return;
	}
	flush_workqueue(shost->work_q);
}