Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern OOPS -- fix mistake in previous commit.



details:   https://anonhg.NetBSD.org/src/rev/80dc66e94253
branches:  trunk
changeset: 745016:80dc66e94253
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 21 02:04:40 2020 +0000

description:
OOPS -- fix mistake in previous commit.

bbusy really needs to return the error; otherwise things are very
bad!

diffstat:

 sys/kern/vfs_bio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f6f2269bc206 -r 80dc66e94253 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Fri Feb 21 00:26:21 2020 +0000
+++ b/sys/kern/vfs_bio.c        Fri Feb 21 02:04:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.288 2020/02/20 15:48:38 riastradh Exp $  */
+/*     $NetBSD: vfs_bio.c,v 1.289 2020/02/21 02:04:40 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.288 2020/02/20 15:48:38 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.289 2020/02/21 02:04:40 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bufcache.h"
@@ -2225,7 +2225,7 @@
 
 out:   SDT_PROBE5(io, kernel, , bbusy__done,
            bp, intr, timo, interlock, error);
-       return 0;
+       return error;
 }
 
 /*



Home | Main Index | Thread Index | Old Index