Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e175a9e6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "scsi: check request was requeued before scheduling requeue work""

parents 66df39be f69d1b5b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -182,8 +182,7 @@ static void __scsi_queue_insert(struct scsi_cmnd *cmd, int reason, int unbusy)
	 * before blk_cleanup_queue() finishes.
	 */
	spin_lock_irqsave(q->queue_lock, flags);
	/* Schedule requeue work only if request was successfully requeued */
	if (blk_requeue_request(q, cmd->request))
	blk_requeue_request(q, cmd->request);
	kblockd_schedule_work(q, &device->requeue_work);
	spin_unlock_irqrestore(q->queue_lock, flags);
}