summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or calltrasz2013-04-031-10/+9
| | | | | | | ctl_done() with mutex held. Reviewed by: ken Sponsored by: FreeBSD Foundation
* The code in clear_remove() and clear_inodedeps() skips one entrymckusick2013-04-031-4/+4
| | | | | | | | | | | | | | | | in the pagedep and inodedep hash tables. An entry in the table is skipped because 'pagedep_hash' and 'inodedep_hash' hold the size of the hash tables - 1. The chance that this would have any operational failure is extremely unlikely. These funtions only need to find a single entry and are only called when there are too many entries. The chance that they would fail because all the entries are on the single skipped hash chain are remote. Submitted by: Pedro Martelletto Reviewed by: kib MFC after: 2 weeks
* IFP4 change 222074.brooks2013-04-031-0/+7
| | | | | | | | | | Introduce an explicit close of the output descriptor so that work done on close is accounted for in the summary output triggered at exit (implicit close()s occur after atexit() hooks). This is useful because some devices such as cfi(4) may perform signficant work after a close occurs (e.g. erasing and rewriting a block of flash).
* Since ATA_CAM mode has no implemented support for serializing access to themav2013-04-032-6/+22
| | | | | | | | | different ATA channels, required for acard and pc98 ATA controllers, block access to second channels of both, hoping that one working channel is better then none. I have an idea how that support could be implemented, but I have no hardware to work on that. MFC after: 1 week
* Tell bmake to use the FreeBSD preferred makefile preference list.sjg2013-04-031-0/+3
| | | | | PR: 177593 Reviewed by: obrien
* Add some more ATA_CAM ifdefs.mav2013-04-032-7/+15
| | | | | Submitted by: marius (partially) MFC after: 1 week
* Add xpt_release_ccb()'s missed at r248872. That made `shutdown -p` stuckmav2013-04-032-0/+3
| | | | on controller with small number of queue slots and several disks connected.
* spa_open_common: fix argument to zvol_create_minorsavg2013-04-031-1/+1
| | | | | | | | | | | | | Prior to r248571 spa_open was always called with a bare pool name, but now it is called with a dataset name instead (spa_lookup handles that). So, when a ZFS root is mounted spa_open is called with a name of a root dataset, which can very well be different from the pool name. But zvol_create_minors should be called with the pool name, because it performs a recursive traversal of all datasets under the name to find all those that are volumes. MFC after: 7 days
* Add missing ifdef's for reduced feature compilations.hselasky2013-04-031-0/+4
|
* Fix possible pool hold leak in dmu_send_impl()mm2013-04-031-3/+3
| | | | | | | | Problem reported to vendor: https://www.illumos.org/issues/3645 Reported by: Andriy Gapon <avg@FreeBSD.org> MFC after: 15 days
* drm and i915: Left-shift iic_msg.slave at creation timedumbbell2013-04-034-20/+14
| | | | | | | | This is required because, in the radeon driver, we can't left-shift in a central place, like it was done in the i915 driver. Reviewed by: kib@, kan@, avg@ Tested by: kib@, avg@
* Add new USB ID.hselasky2013-04-032-0/+2
| | | | | MFC after: 1 week Submitted by: Bruce Simpson <bms@fastmail.net>
* Replace the remaining uses of vm_radix_node_page() by vm_radix_isleaf() andalc2013-04-031-65/+67
| | | | | | | | | | | | vm_radix_topage(). This transformation eliminates some unnecessary conditional branches from the inner loops of vm_radix_insert(), vm_radix_lookup{,_ge,_le}(), and vm_radix_remove(). Simplify the control flow of vm_radix_lookup_{ge,le}(). Reviewed by: attilio (an earlier version) Tested by: pho Sponsored by: EMC / Isilon Storage Division
* Comment out the VIMAGE since we need to build both LINTS tokevlo2013-04-031-2/+2
| | | | | | get good coverage. Pointed out by: jhb
* Replace access to /dev/random with the kernel pseudo-random numberdelphij2013-04-024-55/+32
| | | | | | | | source sysctl(KERN_ARND) and remove the fallback code. Obtained from: OpenBSD Reviewed by: secteam MFC after: 1 month
* sh: Write as much into the heredoc pipe as possible, to avoid forking.jilles2013-04-021-5/+13
| | | | | | Use non-blocking I/O to write as much as the pipe will accept (often 64K, but it can be as little as 4K), avoiding the need for the ugly PIPESIZE constant. If PIPESIZE was set too high, a deadlock would occur.
* Update to bmake-20130330sjg2013-04-0232-336/+778
|\
| * Tag bmake-20130330sjg2013-04-01184-0/+65366
| |
| * Import bmake-20130330sjg2013-04-0129-330/+771
| |
* | Do not declare that preloaded md(4) supports unmapped bio requests, itkib2013-04-021-1/+9
| | | | | | | | | | | | | | does not. Reported by: <mh@kernel32.de> Sponsored by: The FreeBSD Foundation
* | Fix sending virtual scatter/gather lists from the CTL CAM frontendken2013-04-021-1/+5
| | | | | | | | | | | | peripheral. Sponsored by: Spectra Logic
* | Don't directly dereference userland pointer; instead use kernel pointertrasz2013-04-021-4/+4
| | | | | | | | | | | | | | | | copied in from userspace. This fixes instant panic when creating CTL LUN on sparc64. Not a security problem, since the API is root-only. Reviewed by: ken Sponsored by: FreeBSD Foundation
* | Add support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().ken2013-04-021-4/+17
| | | | | | | | | | | | Declare CCB types in their respective switch blocks. Sponsored by: Spectra Logic
* | - Remove extra $FreeBSD$glebius2013-04-021-2/+3
| | | | | | | | | | | | - Touch options headers to make module buildable. Reviewed by: trasz
* | Remove obsolete references to sysinstall.eadler2013-04-022-15/+1
| | | | | | | | | | | | | | | | This change is not intended for MFC. PR: docs/177570 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> (partial) Approved by: bcr (mentor)
* | Fix comment formatting.trasz2013-04-021-4/+4
| |
* | Merge upstream patch to silence spurious "no such identity file" warnings.des2013-04-024-14/+29
| |
* | Silence printf format warnings.des2013-04-021-5/+10
| |
* | Remove unused code.trasz2013-04-021-30/+0
| | | | | | | | Reviewed by: ken
* | Fix dates in manual pages modified in 249009.trasz2013-04-022-2/+2
| |
* | Make it possible to build CTL as a module.trasz2013-04-0211-32/+255
| | | | | | | | | | Reviewed by: ken Sponsored by: FreeBSD Foundation
* | Fix panic in the error path caused by recursive acquisition of XPT topologytrasz2013-04-021-1/+1
| | | | | | | | | | | | lock. Reviewed by: ken
* | Do not check against uninitialized rc and comment out vendor codemm2013-04-021-2/+5
| | | | | | | | MFC after: 16 days
* | Mark a couple of places where I think the dmamap isn't being unmappedadrian2013-04-021-0/+2
| | | | | | | | | | | | | | | | | | before the TX path is being aborted. Right now it's in the TDMA code and I can live with that; but it really should get fixed. I'll do a more thorough audit of this code soon.
* | Some TX dmamap cleanups.adrian2013-04-021-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use BUS_DMA_ALLOCNOW for descriptor DMA maps; we never use bounce buffers for the descriptors themselves. * Add some XXX's to mark where the ath_buf has its mbuf ripped from underneath it without actually cleaning up the dmamap. I haven't audited those particular code paths to see if the DMA map is guaranteed to be setup there; I'll do that later. * Print out a warning if the descdma tidyup code is given some descriptors w/ maps to free. Ideally the owner will free the mbufs and unmap the descriptors before freeing the descriptor/ath_buf pairs, but right now that's not guaranteed to be done. Reviewed by: scottl (BUS_DMA_ALLOCNOW tag)
* | Add a missing unmap; if we're freeing this mbuf then we mustadrian2013-04-021-0/+1
| | | | | | | | really both sync/unmap the dmamap before freeing it.
* | Add VIMAGE to NOTES.kevlo2013-04-021-0/+4
| | | | | | | | Reviewed by: zec
* | Regen.mdf2013-04-0211-15/+15
| | | | | | | | MFC after: 1 week
* | Fix return type of extattr_set_* and fix rmextattr(8) utility.mdf2013-04-027-42/+49
| | | | | | | | | | | | | | | | | | extattr_set_{fd,file,link} is logically a write(2)-like operation and should return ssize_t, just like extattr_get_*. Also, the user-space utility was using an int for the return value of extattr_get_* and extattr_list_*, both of which return an ssize_t. MFC after: 1 week
* | Fix a typo.yongari2013-04-021-1/+1
| | | | | | | | | | | | Reported by: David Imhoff via brad@OpenBSD Tested by: hrs Reviewed by: davidch
* | Added ATA Pass-Through support to CAMsmh2013-04-022-1/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/cam/scsi/scsi_all.c: - Added scsi_ata_pass_16 method Which use ATA Pass-Through to send commands to the attached disk. sys/cam/scsi/scsi_all.h: - Added defines for all missing ATA Pass-Through commands values. - Added scsi_ata_pass_16 method. - Fixed a comment typo while I'm here Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* | Follow up to r247960 and rr247960 by also amending ctfmerge. For thedim2013-04-011-2/+5
| | | | | | | | | | | | | | | | | | | | only other case where STT_FILE symbols are used, in symit_next() in cddl/contrib/opensolaris/tools/ctf/cvt/input.c, save the basename of the symbol, instead of the full pathname. Reported by: avg Tested by: avg, jimharris MFC after: 1 week
* | Ensure that we only call the busdma unmap/flush routines once, whenadrian2013-04-013-22/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the buffer is being freed. * When buffers are cloned, the original mapping isn't copied but it wasn't freeing the mapping until later. To be safe, free the mapping when the buffer is cloned. * ath_freebuf() now no longer calls the busdma sync/unmap routines. * ath_tx_freebuf() now calls sync/unmap. * Call sync first, before calling unmap. Tested: * AR5416, STA mode
* | wordexp(): Remove wrong IFS usage.jilles2013-04-012-4/+20
| | | | | | | | | | | | | | | | | | | | | | Words in shell script are separated by spaces or tabs independent of the value of IFS. The value of IFS is only relevant for the result of substitutions. Therefore, there should be a space between 'wordexp' and the words to be expanded, not an IFS character. Paranoia might dictate that the shell ignore IFS from the environment (even though our sh currently uses it), so do not depend on it in the new test case.
* | Remove an un-needed comment.adrian2013-04-011-6/+0
| |
* | Use ATH_MAX_SCATTER rather than ATH_TXDESC.adrian2013-04-012-5/+5
| | | | | | | | | | ATH_MAX_SCATTER is used to size the ath_buf DMA segment array. We thus should use it when checking sizes of things.
* | Only unmap the RX mbuf DMA map if there's a buffer here.adrian2013-04-011-3/+5
| | | | | | | | | | | | The normal RX path (ath_rx_pkt()) will sync and unmap the buffer before passing it up the stack. We only need to do this if we're flushing the FIFO during reset/shutdown.
* | Dtrace: enablings on defunct providers prevent providers from unregisteringpfg2013-04-018-17/+546
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge change from illumos: 1368 enablings on defunct providers prevent providers from unregistering We try to address some underlying differences between the Solaris and FreeBSD implementations: dtrace_attach() / dtrace_detach() are currently unimplemented in FreeBSD but the new code from illumos makes use of taskq so some adaptations were made to dtrace_open() and dtrace_close() to handle them appropriately. Illumos Revision: r13430:8e6add739e38 Reference: https://www.illumos.org/issues/1368 Reviewed by: gnn Tested by: Fabian Keil Obtained from: Illumos MFC after: 3 weeks
* | | sh: Fix various compiler warnings.jilles2013-04-0111-32/+36
| | | | | | | | | | | | | | | | | | | | | It now passes WARNS=7 with clang on i386. GCC 4.2.1 does not understand setjmp() properly so will always trigger -Wuninitialized. I will not add the volatile keywords to suppress this.
* | | Format per etc/mtree/READMEemaste2013-04-011-91/+91
| | | | | | | | | | | | | | | - Spaces instead of tabs - Sort some i18n entries
OpenPOWER on IntegriCloud