svn commit: r254365 - projects/camlock/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Thu Aug 15 12:55:58 UTC 2013


Author: mav
Date: Thu Aug 15 12:55:57 2013
New Revision: 254365
URL: http://svnweb.freebsd.org/changeset/base/254365

Log:
  Remove check for zero sized BIOs. I don't remember why have I added it,
  but if such BIOs exist, they probably could be completed at GEOM layer.

Modified:
  projects/camlock/sys/cam/scsi/scsi_da.c

Modified: projects/camlock/sys/cam/scsi/scsi_da.c
==============================================================================
--- projects/camlock/sys/cam/scsi/scsi_da.c	Thu Aug 15 12:19:16 2013	(r254364)
+++ projects/camlock/sys/cam/scsi/scsi_da.c	Thu Aug 15 12:55:57 2013	(r254365)
@@ -1349,9 +1349,7 @@ dastrategy(struct bio *bp)
 	 * Place it in the queue of disk activities for this disk
 	 */
 	if (bp->bio_cmd == BIO_DELETE) {
-		if (bp->bio_bcount == 0)
-			biodone(bp);
-		else if (DA_SIO)
+		if (DA_SIO)
 			bioq_disksort(&softc->delete_queue, bp);
 		else
 			bioq_insert_tail(&softc->delete_queue, bp);


More information about the svn-src-projects mailing list