From: Stephen M. Cameron Date: Thu, 12 Nov 2009 18:49:25 +0000 (-0600) Subject: cciss: Retry driver initiated cmds with unit attention condition X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c08fac6500b658c16834aceb13a08ebddd908333;p=linux-beck.git cciss: Retry driver initiated cmds with unit attention condition cciss: Retry driver initiated cmds with unit attention condition Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 81c21875eb72..429b9b6ff590 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -2531,6 +2531,8 @@ static int check_target_status(ctlr_info_t *h, CommandList_struct *c) case 0: return IO_OK; /* no sense */ case 1: return IO_OK; /* recovered error */ default: + if (check_for_unit_attention(h, c)) + return IO_NEEDS_RETRY; printk(KERN_WARNING "cciss%d: cmd 0x%02x " "check condition, sense key = 0x%02x\n", h->ctlr, c->Request.CDB[0],