]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
cciss: Retry driver initiated cmds with unit attention condition
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 12 Nov 2009 18:49:25 +0000 (12:49 -0600)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 13 Nov 2009 07:45:53 +0000 (08:45 +0100)
cciss:  Retry driver initiated cmds with unit attention condition

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c

index 81c21875eb72bec3b1a8ca2d34985913e8f46a3d..429b9b6ff59000a746d0d6fb07fc0501a4bdb219 100644 (file)
@@ -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],