Date: Tue, 03 Sep 2019 14:05:51 -0000 From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r345662 - projects/fuse2/sys/fs/fuse Message-ID: <201903282157.x2SLvg6e022096@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Thu Mar 28 21:57:42 2019 New Revision: 345662 URL: https://svnweb.freebsd.org/changeset/base/345662 Log: fusefs: fix error handling in fuse_vnop_strategy Reported by: cem Sponsored by: The FreeBSD Foundation Modified: projects/fuse2/sys/fs/fuse/fuse_io.c projects/fuse2/sys/fs/fuse/fuse_vnops.c Modified: projects/fuse2/sys/fs/fuse/fuse_io.c ============================================================================== --- projects/fuse2/sys/fs/fuse/fuse_io.c Thu Mar 28 21:43:01 2019 (r345661) +++ projects/fuse2/sys/fs/fuse/fuse_io.c Thu Mar 28 21:57:42 2019 (r345662) @@ -652,6 +652,7 @@ fuse_io_strategy(struct vnode *vp, struct buf *bp) printf("FUSE: strategy: filehandles are closed\n"); bp->b_ioflags |= BIO_ERROR; bp->b_error = error; + bufdone(bp); return (error); } cred = bp->b_iocmd == BIO_READ ? bp->b_rcred : bp->b_wcred; Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c ============================================================================== --- projects/fuse2/sys/fs/fuse/fuse_vnops.c Thu Mar 28 21:43:01 2019 (r345661) +++ projects/fuse2/sys/fs/fuse/fuse_vnops.c Thu Mar 28 21:57:42 2019 (r345662) @@ -1710,7 +1710,7 @@ fuse_vnop_strategy(struct vop_strategy_args *ap) bp->b_ioflags |= BIO_ERROR; bp->b_error = ENXIO; bufdone(bp); - return ENXIO; + return 0; } if (bp->b_iocmd == BIO_WRITE) { int err; @@ -1719,6 +1719,7 @@ fuse_vnop_strategy(struct vop_strategy_args *ap) if (err) { bp->b_ioflags |= BIO_ERROR; bp->b_error = err; + bufdone(bp); return 0; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903282157.x2SLvg6e022096>