Skip to content

Commit 3e28601

Browse files
Stephen M. CameronJens Axboe
authored andcommitted
cciss: increase timeouts for post-reset no-ops
Just to reduce the messages about timeouts that appear. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 59ec86b commit 3e28601

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/block/cciss.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4353,7 +4353,7 @@ static __devinit int cciss_message(struct pci_dev *pdev, unsigned char opcode, u
43534353
tag = readl(vaddr + SA5_REPLY_PORT_OFFSET);
43544354
if ((tag & ~3) == paddr32)
43554355
break;
4356-
schedule_timeout_uninterruptible(HZ);
4356+
msleep(CCISS_POST_RESET_NOOP_TIMEOUT_MSECS);
43574357
}
43584358

43594359
iounmap(vaddr);

‎drivers/block/cciss.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ struct ctlr_info
209209
((CCISS_BOARD_NOT_READY_WAIT_SECS * 1000) / \
210210
CCISS_BOARD_READY_POLL_INTERVAL_MSECS)
211211
#define CCISS_POST_RESET_PAUSE_MSECS (3000)
212-
#define CCISS_POST_RESET_NOOP_INTERVAL_MSECS (1000)
212+
#define CCISS_POST_RESET_NOOP_INTERVAL_MSECS (4000)
213213
#define CCISS_POST_RESET_NOOP_RETRIES (12)
214+
#define CCISS_POST_RESET_NOOP_TIMEOUT_MSECS (10000)
214215

215216
/*
216217
Send the command to the hardware

0 commit comments

Comments
 (0)