Source-Changes-HG archive

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

[src/trunk]: src/sys/kern mark all wapbl I/O as BPRIO_TIMECRITICAL.



details:   https://anonhg.NetBSD.org/src/rev/fcc902501711
branches:  trunk
changeset: 779069:fcc902501711
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Apr 29 22:55:11 2012 +0000

description:
mark all wapbl I/O as BPRIO_TIMECRITICAL.
this is the second part of addressing PR 46325.

diffstat:

 sys/kern/vfs_wapbl.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c9b5e63a4712 -r fcc902501711 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c      Sun Apr 29 22:53:59 2012 +0000
+++ b/sys/kern/vfs_wapbl.c      Sun Apr 29 22:55:11 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_wapbl.c,v 1.51 2012/01/28 18:02:56 para Exp $      */
+/*     $NetBSD: vfs_wapbl.c,v 1.52 2012/04/29 22:55:11 chs Exp $       */
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.51 2012/01/28 18:02:56 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.52 2012/04/29 22:55:11 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -752,6 +752,7 @@
        bp->b_data = data;
        bp->b_bufsize = bp->b_resid = bp->b_bcount = len;
        bp->b_blkno = pbn;
+       BIO_SETPRIO(bp, BPRIO_TIMECRITICAL);
 
        WAPBL_PRINTF(WAPBL_PRINT_IO,
            ("wapbl_doio: %s %d bytes at block %"PRId64" on dev 0x%"PRIx64"\n",



Home | Main Index | Thread Index | Old Index