summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Handle errors from bus_setup_intr().netchild2007-04-011-2/+4
| | | | | Found by: Coverity Prevent (tm) CID: 1066
* Tell the user when the setup of the interrupt handler failed and returnnetchild2007-04-017-23/+61
| | | | | | | an error. Found by: Coverity Prevent (tm) CID: 71-78
* ng_node and ng_worklist locks both migrated from being spinning locks towkoszek2007-04-011-2/+6
| | | | | | | adaptive mutexes. Let witness(4) calm down and bring proper types of those locks to the lock order database. Glanced at by: rwatson
* More style nits.pjd2007-04-011-9/+9
|
* Tell a statistic checker that not checking the return value of the probingnetchild2007-04-011-1/+1
| | | | | | | of the mii phy is intended for this chip. Found by: Coverity Prevent (tm) CID: 43
* Make it obvious that we don't care about the return value ofnetchild2007-04-011-1/+1
| | | | | | | | usbd_endpoint_count(), the failure case is handled implicit in the following code. Found by: Coverity Prevent (tm) CID: 56
* Style nit.pjd2007-04-011-1/+1
|
* I think the code I'm removing here is completely bogus.pjd2007-04-011-3/+0
| | | | | | | | | | | | | | | | | | | vfs_flags field is used for VFCF_* flags which are given at file system driver creation time (via VFS_SET(9)) macro. What this code did was bascially this: If file system registers itself with VFCF_UNICODE flag (stores file names as Unicode), it will gain MNT_SOFTDEP flag (UFS soft-updates). If file system registers itself with VFCF_LOOPBACK flag (aliases some other mounted FS), it will gain MNT_SUIDDIR flag (special handling of SUID on dirs). The latter will be quite dangerous, but those flags are reset later in vfs_domount(). MFC after: 1 month
* Change #include <machine/pcpu.h> to #include <sys/pcpu.h>rodrigc2007-04-011-1/+1
| | | | to get definition of curthread, required by <sys/sx.h>.
* If nooption SMP on powerpc, also nooption ADAPTIVE_SX, which depends onrwatson2007-04-011-0/+1
| | | | SMP and is now in the global NOTES.
* Now that the vdropl() function is public, assert that the vnode interlockpjd2007-04-011-0/+1
| | | | is held.
* Add bge(4).marcel2007-04-011-2/+3
| | | | Fix a white-space nit while I'm here.
* When writing to PCI configuration registers, don't immediatelymarcel2007-04-011-3/+0
| | | | | | | | read the same register back. It can cause hangs or machine checks in certain cases. One particular case is with bge(4) when a reset is initiated for the controller. MFC after: 1 month
* Remove unused file.marcel2007-04-011-833/+0
|
* Make vdropl() public; zfs needs it. There is also plenty of existingdes2007-03-312-2/+2
| | | | | | | | | | | | | | | | | file system code (mostly *_reclaim()) which look like this: VOP_LOCK(vp); /* examine vp */ VOP_UNLOCK(vp); vdrop(vp); This can now be rewritten to: VOP_LOCK(vp); /* examine vp */ vdropl(vp); /* will unlock vp */ MFC after: 1 week
* Optimize sx locks to use simple atomic operations for the common cases ofjhb2007-03-3114-330/+939
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | obtaining and releasing shared and exclusive locks. The algorithms for manipulating the lock cookie are very similar to that rwlocks. This patch also adds support for exclusive locks using the same algorithm as mutexes. A new sx_init_flags() function has been added so that optional flags can be specified to alter a given locks behavior. The flags include SX_DUPOK, SX_NOWITNESS, SX_NOPROFILE, and SX_QUITE which are all identical in nature to the similar flags for mutexes. Adaptive spinning on select locks may be enabled by enabling the ADAPTIVE_SX kernel option. Only locks initialized with the SX_ADAPTIVESPIN flag via sx_init_flags() will adaptively spin. The common cases for sx_slock(), sx_sunlock(), sx_xlock(), and sx_xunlock() are now performed inline in non-debug kernels. As a result, <sys/sx.h> now requires <sys/lock.h> to be included prior to <sys/sx.h>. The new kernel option SX_NOINLINE can be used to disable the aforementioned inlining in non-debug kernels. The size of struct sx has changed, so the kernel ABI is probably greatly disturbed. MFC after: 1 month Submitted by: attilio Tested by: kris, pjd
* oops, another missed file from crypto api changesam2007-03-311-0/+1
|
* Make vfs_mount_destroy() and vfs_freeopts() non-static, I'd like to use them.pjd2007-03-312-3/+4
|
* Add constants for the fields in a BAR. Also, add two new macrosjhb2007-03-313-39/+45
| | | | | | | PCI_BAR_(IO|MEM)() that return true if the passed in value from a BAR is for an IO or memory BAR, respectively. Reviewed by: imp
* Fix compilation problem (add a const) for pre-7.0 compiles.mjacob2007-03-311-1/+1
|
* - Add missing constants for subclasses.jhb2007-03-314-11/+37
| | | | - Add a few progif constants as well.
* Rather than ignoring any error return from getnewvnode() in nameiinit(),rwatson2007-03-311-1/+5
| | | | | | | | explicitly test and panic. This should not ever happen, but if it does, this is a preferred failure mode to a NULL pointer dereference in kernel. Coverity CID: 1716 Found with: Coverity Prevent(tm)
* We don't need spinning locks here. Change them to the adaptive mutexes. Thiswkoszek2007-03-311-6/+6
| | | | | | | change should bring no performance decrease, as it did not in my tests. Reviewed by: julian, glebius Approved by: cognet (mentor)
* Tell interested readers of the source that the return value is notnetchild2007-03-311-1/+5
| | | | | | | | checked by intend. Found by: Coverity Prevent (tm) CID: 55 Reviewed by: ariff
* - Found bug in min split point bundling which causedrrs2007-03-3115-370/+532
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incorrect, non-bundlable fragmentation. - Added min residual to better control split points for both how big a msg must be as well as how much needs to be left over. - With our new algo in place, we need to implicitly set "end of msg" on the sp-> structure otherwise we end up with "hung" associations. - Room reserved up front in IP header by pushing IP header to back of mbuf. - Fix so FR's peg count of retransmissions needed. - Fix so an unlucky chunk that never gets across will kill the assoc via the kill timer and send an abort too. - Fix bug in sctp_input which can result in a crash. - Do not strip off IP options anymore. - Clean up sctp_calculate_rto(). - Get rid of unused sysctl. - Fixed so we discard all M-Cast - Fixed so port check done AFTER checksum - Fixed bug in fragmentation code that prevented us from fragmenting a small complete message when we needed to. - Window probes were not marked back to unsent and flight adjusted when a sack came in with no window change or accepting of the probe data. We now fix this with having a mark on the net and the chunk so we can clear it out when the sack arrives forcing it to retran just like it was "new" this improves the handling of window probes, which were dropped by the receiver. - Tighten AUTH protocol error checks during INIT/INIT-ACK exchange
* Correct BB-profiling and adjust comments.jkim2007-03-312-46/+45
| | | | | Pointed out by: bde Reviewed by: bde
* Fix off-by-4 error in address validation for i386, reduce PCB reloading, andjkim2007-03-302-23/+17
| | | | | | | | fix more style(9) nits. Pointed out by: bde Discussed with: kib Reviewd by: bde
* Teardown interrupt only when sc->ih is not NULL.simokawa2007-03-301-11/+10
| | | | MFC after: 3 days
* Fix more style(9) nits[1] and remove unnecessary use of '#if !defined(_KERNEL)'.jkim2007-03-302-75/+75
| | | | Pointed out by: bde[1]
* Use the same wisdom of sys/i386/i386/support.s 1.97 to remove obfuscation.jkim2007-03-302-17/+16
| | | | Pointed out by: bde
* - Use PARTIAL_PICKUP_GIANT() to implement PICKUP_GIANT().jhb2007-03-301-13/+9
| | | | | - Move UGAR() macro up to the comment that describes it. - Fix a couple of typos.
* - Drop memory barriers in rw_try_upgrade(). We don't need an 'acq' memoryjhb2007-03-301-4/+4
| | | | | barrier here as the earlier rw_rlock() already contained one. - Comment fix.
* - Use lock_init/lock_destroy() to setup the lock_object inside of lockmgr.jhb2007-03-302-9/+13
| | | | | | | We can now use LOCK_CLASS() as a stronger check in lockmgr_chain() as a result. This required putting back lk_flags as lockmgr's use of flags conflicted with other flags in lo_flags otherwise. - Tweak 'show lock' output for lockmgr to match sx, rw, and mtx.
* Use underlying structures instead of kernel_sysctlbyname() for msginfo andjkim2007-03-301-34/+5
| | | | | | | | | seminfo because kernel_sysctlbyname() is slow. There is no dependency problem since linux module depends on both sysvmsg and sysvsem and linprocfs depends on it in turn. Pointed out by: des Reviewed by: des
* MFP4: Fix style(9) nits and grammar in comments.jkim2007-03-301-49/+48
|
* MFP4: 114193, 114194jkim2007-03-301-11/+11
| | | | | | | Dont "return" in linux_clone() after we forked the new process in a case of problems. Move the copyout of p2->p_pid outside the emul_lock coverage. Submitted by: Roman Divacky
* - Be more verbose when saying "foo" not found.delphij2007-03-301-10/+10
| | | | | | | - In gctl_get_geom(), don't issue error when we were not provided with an parameter, like gctl_get_provider() did. Reviewed by: pjd
* Free tlabel in fw_xfer_done().simokawa2007-03-301-2/+1
|
* - Don't call fw_busreset() in firewire_attach().simokawa2007-03-301-1/+0
| | | | | | | This should fix the problem that the first bus reset is sometimes ignored because of FWBUSRESET status. MFC after: 3 days
* Instead of direct manipulation on queue and worklist mutexes, bring macroswkoszek2007-03-301-27/+40
| | | | | | | | for doing this job. This change will make it easy to migrate from using spinning locks to adaptive ones. Reviewed by: glebius, julian Approved by: cognet (mentor)
* MFP4: Linux futex support for amd64.jkim2007-03-303-148/+175
| | | | | | | Initial patch was submitted by kib and additional work was done by Divacky Roman. Tested by: emulation
* Regen for set_thread_area.jkim2007-03-303-4/+10
|
* MFP4: Linux set_thread_area syscall (aka TLS) support for amd64.jkim2007-03-309-40/+196
| | | | | | Initial version was submitted by Divacky Roman and mostly rewritten by me. Tested by: emulation
* Fix a bug in IPv4 address configuration exposed by refcounting.bms2007-03-291-13/+40
| | | | | | | | | | | | | | | | * Join the IPv4 all-hosts multicast group 224.0.0.1 once only; that is, when an IPv4 address is first configured on an interface. * Do not join it for subsequent IPv4 addresses as this violates IGMP. * Be sure to leave the group when all IPv4 addresses have been removed from the interface. * Add two DIAGNOSTIC printfs related to the issue. Further care and attention is needed in this area; it is suggested that netinet's attachment to the ifnet structure be compartmentalized and non-implicit. Bug found by: andre MFC after: 1 month
* some minor error message cleanupsmjacob2007-03-291-4/+4
|
* vm_map_delete should be used only internally, by the VM subsystem. Replacewkoszek2007-03-291-6/+2
| | | | | | | | it with vm_map_remove, which not only embeds additional check, but also takes care of locking. Reviewed by: alc Approved by: alc, cognet (mentor)
* Revert rev. 1.205. Replace unconditional acquision of Giant when QUOTAS arekib2007-03-291-0/+5
| | | | | | | | | defined with VFS_LOCK_GIANT(NULL) call. This shall fix softdep operation when mpsafe_vfs = 0. Reported and tested by: kris Submitted by: tegge MFC after: 1 week
* Extend rev. 1.210 to avoid dereference NULL mp in VFS_NEEDSGIANT andkib2007-03-291-5/+14
| | | | | | | | VFS_ASSERT_GIANT. Stop using reserved namespace. Reported and tested by: kris Reviewed and enhanced by: tegge MFC after: 1 week
* o Revert last. The chip is already supported by puc(4).maxim2007-03-291-1/+0
| | | | Pointed out by: marcel, Joseph Terner
* Implement the openat() linux syscalljulian2007-03-2912-43/+164
| | | | | Submitted by: Roman Divacky (rdivacky@) MFC after: 2 weeks
OpenPOWER on IntegriCloud