svn commit: r251918 - stable/9/sys/geom/gate

Alexander Motin mav at FreeBSD.org
Tue Jun 18 09:26:01 UTC 2013


Author: mav
Date: Tue Jun 18 09:26:01 2013
New Revision: 251918
URL: http://svnweb.freebsd.org/changeset/base/251918

Log:
  MFC r248295 (by pjd):
  We don't need buffer to handle BIO_DELETE, so don't check buffer size for it.
  This fixes handling BIO_DELETE larger than MAXPHYS.

Modified:
  stable/9/sys/geom/gate/g_gate.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/geom/gate/g_gate.c
==============================================================================
--- stable/9/sys/geom/gate/g_gate.c	Tue Jun 18 09:23:03 2013	(r251917)
+++ stable/9/sys/geom/gate/g_gate.c	Tue Jun 18 09:26:01 2013	(r251918)
@@ -813,7 +813,7 @@ g_gate_ioctl(struct cdev *dev, u_long cm
 			}
 		}
 		ggio->gctl_cmd = bp->bio_cmd;
-		if ((bp->bio_cmd == BIO_DELETE || bp->bio_cmd == BIO_WRITE) &&
+		if (bp->bio_cmd == BIO_WRITE &&
 		    bp->bio_length > ggio->gctl_length) {
 			mtx_unlock(&sc->sc_queue_mtx);
 			ggio->gctl_length = bp->bio_length;


More information about the svn-src-stable-9 mailing list