Commit 47e7e89e authored by Giridhar Malavali's avatar Giridhar Malavali Committed by James Bottomley
Browse files

fc_transport: Selective return value from BSG timeout function



The return value from BSG timout function should be based on the state of the
BSG job. This helps block layer to take selective actions to clean up BSG job.

Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Acked-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent b5c6f776
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3480,6 +3480,9 @@ fc_bsg_job_timeout(struct request *req)
	}

	/* the blk_end_sync_io() doesn't check the error */
	if (done)
		return BLK_EH_NOT_HANDLED;
	else
		return BLK_EH_HANDLED;
}