From d1df4f038fcbfff18e5b1a21083f283b4901eff8 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 29 Apr 2009 00:52:30 +0000 Subject: Use NO_CCB when we run out of work units. This way we don't have to care about having enough WU + CCB during rebuilds. This also brings softraid closer to behaving like the other SCSI devices. --- sys/dev/softraid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 3085f3fb064..00b6f5282fd 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.130 2009/04/28 03:29:00 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.131 2009/04/29 00:52:30 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -1499,7 +1499,7 @@ sr_scsi_cmd(struct scsi_xfer *xs) if ((wu = sr_wu_get(sd)) == NULL) { DNPRINTF(SR_D_CMD, "%s: sr_scsi_cmd no wu\n", DEVNAME(sc)); - return (TRY_AGAIN_LATER); + return (NO_CCB); } xs->error = XS_NOERROR; -- cgit v1.2.3-59-g8ed1b