diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2009-04-29 00:52:31 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2009-04-29 00:52:31 +0000 |
commit | 28d9932de5b3b21cd2af2aa63dc273e53c09f55f (patch) | |
tree | 2257f522c3d7e6398e3217da64b4f835be16af37 /sys/dev | |
parent | 43977ad65706fb3cae0e16f405bfe64711de1531 (diff) |
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -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; |