tr_raid0.c (240465) | tr_raid0.c (242323) |
---|---|
1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/geom/raid/tr_raid0.c 240465 2012-09-13 13:27:09Z mav $"); | 28__FBSDID("$FreeBSD: head/sys/geom/raid/tr_raid0.c 242323 2012-10-29 18:04:38Z mav $"); |
29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/endian.h> 33#include <sys/kernel.h> 34#include <sys/kobj.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> --- 192 unchanged lines hidden (view full) --- 229 cbp->bio_length = length; 230 cbp->bio_caller1 = &vol->v_subdisks[no]; 231 bioq_insert_tail(&queue, cbp); 232 if (++no >= vol->v_disks_count) { 233 no = 0; 234 offset += strip_size; 235 } 236 remain -= length; | 29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/endian.h> 33#include <sys/kernel.h> 34#include <sys/kobj.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> --- 192 unchanged lines hidden (view full) --- 229 cbp->bio_length = length; 230 cbp->bio_caller1 = &vol->v_subdisks[no]; 231 bioq_insert_tail(&queue, cbp); 232 if (++no >= vol->v_disks_count) { 233 no = 0; 234 offset += strip_size; 235 } 236 remain -= length; |
237 addr += length; | 237 if (bp->bio_cmd != BIO_DELETE) 238 addr += length; |
238 start = 0; 239 } while (remain > 0); 240 for (cbp = bioq_first(&queue); cbp != NULL; 241 cbp = bioq_first(&queue)) { 242 bioq_remove(&queue, cbp); 243 sd = cbp->bio_caller1; 244 cbp->bio_caller1 = NULL; 245 g_raid_subdisk_iostart(sd, cbp); --- 82 unchanged lines hidden --- | 239 start = 0; 240 } while (remain > 0); 241 for (cbp = bioq_first(&queue); cbp != NULL; 242 cbp = bioq_first(&queue)) { 243 bioq_remove(&queue, cbp); 244 sd = cbp->bio_caller1; 245 cbp->bio_caller1 = NULL; 246 g_raid_subdisk_iostart(sd, cbp); --- 82 unchanged lines hidden --- |