CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: martin Date: Mon Oct 31 15:56:40 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: shpcic_machdep.c Log Message: Fix signature of landisk_pci_intr_setattr To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/landisk/landisk/shpcic_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/landisk/landisk/shpcic_machdep.c diff -u src/sys/arch/landisk/landisk/shpcic_machdep.c:1.8 src/sys/arch/landisk/landisk/shpcic_machdep.c:1.9 --- src/sys/arch/landisk/landisk/shpcic_machdep.c:1.8 Sat Oct 29 11:04:23 2022 +++ src/sys/arch/landisk/landisk/shpcic_machdep.c Mon Oct 31 15:56:40 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: shpcic_machdep.c,v 1.8 2022/10/29 11:04:23 riastradh Exp $ */ +/* $NetBSD: shpcic_machdep.c,v 1.9 2022/10/31 15:56:40 martin Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: shpcic_machdep.c,v 1.8 2022/10/29 11:04:23 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: shpcic_machdep.c,v 1.9 2022/10/31 15:56:40 martin Exp $"); #include #include @@ -118,7 +118,7 @@ bad: } int -landisk_pci_intr_setattr(const struct pci_attach_args *pa, +landisk_pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ihp, int attr, uint64_t data) {
CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: martin Date: Mon Oct 31 15:56:40 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: shpcic_machdep.c Log Message: Fix signature of landisk_pci_intr_setattr To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/landisk/landisk/shpcic_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: mlelstv Date: Tue May 3 14:20:24 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: autoconf.c Log Message: Fix vnode locking around VOP_OPEN. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/landisk/landisk/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/landisk/landisk/autoconf.c diff -u src/sys/arch/landisk/landisk/autoconf.c:1.9 src/sys/arch/landisk/landisk/autoconf.c:1.10 --- src/sys/arch/landisk/landisk/autoconf.c:1.9 Sat Mar 19 13:49:21 2022 +++ src/sys/arch/landisk/landisk/autoconf.c Tue May 3 14:20:24 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.9 2022/03/19 13:49:21 hannken Exp $ */ +/* $NetBSD: autoconf.c,v 1.10 2022/05/03 14:20:24 mlelstv Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2022/03/19 13:49:21 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.10 2022/05/03 14:20:24 mlelstv Exp $"); #include #include @@ -122,6 +122,7 @@ match_bootdisk(device_t dv, struct btinf vput(tmpvn); return (0); } + VOP_UNLOCK(tmpvn); error = VOP_IOCTL(tmpvn, DIOCGDINFO, &label, FREAD, NOCRED); if (error) { /* @@ -140,6 +141,7 @@ match_bootdisk(device_t dv, struct btinf found = 1; closeout: + vn_lock(tmpvn, LK_EXCLUSIVE | LK_RETRY); VOP_CLOSE(tmpvn, FREAD, NOCRED); vput(tmpvn); return (found);
CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: mlelstv Date: Tue May 3 14:20:24 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: autoconf.c Log Message: Fix vnode locking around VOP_OPEN. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/landisk/landisk/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: hannken Date: Sat Mar 19 13:49:21 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: autoconf.c Log Message: Lock vnode across VOP_OPEN/VOP_IOCTL/VOP_CLOSE. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/landisk/landisk/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/landisk/landisk/autoconf.c diff -u src/sys/arch/landisk/landisk/autoconf.c:1.8 src/sys/arch/landisk/landisk/autoconf.c:1.9 --- src/sys/arch/landisk/landisk/autoconf.c:1.8 Sat Apr 6 00:09:09 2019 +++ src/sys/arch/landisk/landisk/autoconf.c Sat Mar 19 13:49:21 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.8 2019/04/06 00:09:09 uwe Exp $ */ +/* $NetBSD: autoconf.c,v 1.9 2022/03/19 13:49:21 hannken Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2019/04/06 00:09:09 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2022/03/19 13:49:21 hannken Exp $"); #include #include @@ -107,6 +107,7 @@ match_bootdisk(device_t dv, struct btinf */ if (bdevvp(MAKEDISKDEV(bmajor, device_unit(dv), RAW_PART), &tmpvn)) panic("match_bootdisk: can't alloc vnode"); + vn_lock(tmpvn, LK_EXCLUSIVE | LK_RETRY); error = VOP_OPEN(tmpvn, FREAD, NOCRED); if (error) { #ifndef DEBUG
CVS commit: src/sys/arch/landisk/landisk
Module Name:src Committed By: hannken Date: Sat Mar 19 13:49:21 UTC 2022 Modified Files: src/sys/arch/landisk/landisk: autoconf.c Log Message: Lock vnode across VOP_OPEN/VOP_IOCTL/VOP_CLOSE. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/landisk/landisk/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.