Skip to content

Commit

Permalink
fc_transport: Selective return value from BSG timeout function
Browse files Browse the repository at this point in the history
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: Giridhar Malavali <giridhar.malavali@qlogic.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Giridhar Malavali authored and James Bottomley committed Jun 21, 2009
1 parent b5c6f77 commit 47e7e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/scsi/scsi_transport_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3480,7 +3480,10 @@ fc_bsg_job_timeout(struct request *req)
}

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

static int
Expand Down

0 comments on commit 47e7e89

Please sign in to comment.