aac_disk.c (132771) | aac_disk.c (133540) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/aac/aac_disk.c 132771 2004-07-28 06:21:53Z kan $"); | 31__FBSDID("$FreeBSD: head/sys/dev/aac/aac_disk.c 133540 2004-08-12 05:05:06Z scottl $"); |
32 33#include "opt_aac.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> 38#include <sys/module.h> 39#include <sys/sysctl.h> --- 130 unchanged lines hidden (view full) --- 170 bp->bio_resid = bp->bio_bcount; 171 biodone(bp); 172 return; 173 } 174 175 /* perform accounting */ 176 177 /* pass the bio to the controller - it can work out who we are */ | 32 33#include "opt_aac.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> 38#include <sys/module.h> 39#include <sys/sysctl.h> --- 130 unchanged lines hidden (view full) --- 170 bp->bio_resid = bp->bio_bcount; 171 biodone(bp); 172 return; 173 } 174 175 /* perform accounting */ 176 177 /* pass the bio to the controller - it can work out who we are */ |
178 AAC_LOCK_ACQUIRE(&sc->ad_controller->aac_io_lock); | 178 mtx_lock(&sc->ad_controller->aac_io_lock); |
179 aac_submit_bio(bp); | 179 aac_submit_bio(bp); |
180 AAC_LOCK_RELEASE(&sc->ad_controller->aac_io_lock); | 180 mtx_unlock(&sc->ad_controller->aac_io_lock); |
181 182 return; 183} 184 185/* 186 * Map the S/G elements for doing a dump. 187 * 188 * XXX This does not handle >4GB of RAM. Fixing it is possible except on --- 210 unchanged lines hidden --- | 181 182 return; 183} 184 185/* 186 * Map the S/G elements for doing a dump. 187 * 188 * XXX This does not handle >4GB of RAM. Fixing it is possible except on --- 210 unchanged lines hidden --- |