~kris/9p

9hist

07f4721f5b6fab27064ae03d519358351dea9929 — David du Colombier 34 years ago e8c3838
Plan 9 from Bell Labs 1992-09-21
1 files changed, 3 insertions(+), 3 deletions(-)

M port/devscsi.c
M port/devscsi.c => port/devscsi.c +3 -3
@@ 530,14 530,14 @@ scsibuf(void)

	for(;;) {
		lock(&scsibufalloc);
		if(b = scsibufalloc.free) {
		b = scsibufalloc.free;
		if(b != 0) {
			scsibufalloc.free = b->next;
			unlock(&scsibufalloc);
			return b;
		}

		unlock(&scsibufalloc);
		resrcwait("no scsi buffers");
		resrcwait(0);
	}
	return 0;		/* not reached */
}