Ian Lepore
e7a8895c57
Whitespace and comment tweaks, no functional changes.
2014-11-15 05:40:20 +00:00
Brad Davis
45ba9627e4
Add a test for locking and unlocking user accounts
...
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Reviewed by: will
2014-11-15 05:12:30 +00:00
Ian Lepore
df826e78d4
When doing busdma sync ops for BUSDMA_COHERENT memory, there is no need
...
for cache maintenance operations, but ensure that all prior writes have
reached memory when doing a PREWRITE sync.
Submitted by: Michal Meloun <meloun@miracle.cz>
2014-11-15 03:39:58 +00:00
Yoshihiro Takahashi
cf902afcac
MFi386: r274398
...
Move NFS and TFTP filesystems before the synthetic filesystems (bzip,
gzip, and split).
2014-11-15 03:34:34 +00:00
Ian Lepore
3aa1219d0c
Use the standard powerof2() macro from param.h instead of a local one.
...
Pointed out by: jhb@
2014-11-15 02:58:17 +00:00
Adrian Chadd
adcdc8f290
Convert the callouts back to using mutexes.
...
I did this wrong - I should've included a state flag for each callout
to see if it was supposed to run or not. I didn't do that.
Instead, just use mutexes anyway.
Suggested by: jhb
2014-11-15 01:18:49 +00:00
Alexander Motin
9f4fae3950
Remove mostly obsolete hint to disable LAPIC timers.
...
It is partially covered by new code and partially by new CPUs.
PR: 195016
Submitted by: tobias.rehbein@web.de
MFC after: 1 week
2014-11-14 22:01:14 +00:00
Warner Losh
8a3e6d90e5
Automate options INET/INET6 turning into MK_$opt_SUPPORT
...
correctly. Fixes if_gfe when building without INET6 and
simplifies if_gif's Makefile.
Sponsored by: Netflix, Inc
2014-11-14 21:10:45 +00:00
Warner Losh
5181481b9b
Cleanup trailing newlines noticed while looking for other issues.
2014-11-14 21:08:51 +00:00
Ed Maste
9d1334e076
Reference uefi(8) from i386 boot(8)
...
Suggested by trasz.
Differential Revision: https://reviews.freebsd.org/D1162
2014-11-14 20:12:33 +00:00
Xin LI
b4f46e79e8
Use ${SYSDIR} as the reference pointer instead of specifying relative path directly.
...
Reported by: jenkins via Olivér Pintér (on github)
2014-11-14 18:44:13 +00:00
Gleb Smirnoff
e1a4454553
Even better indent struct pagerops.
2014-11-14 18:15:35 +00:00
Gleb Smirnoff
5536922ec0
Constantly indent struct pagerops.
2014-11-14 18:00:00 +00:00
Jilles Tjoelker
b1f6059232
sh(1): Add/improve information about exit status of commands.
2014-11-14 17:11:28 +00:00
Gleb Smirnoff
8146bcfea1
- Use NULL to compare a pointer.
...
- Use KASSERT() instead of panic.
- Remove useless 'continue', no need to restart cycle here.
Sponsored by: Nginx, Inc.
2014-11-14 15:44:19 +00:00
Gleb Smirnoff
6bf6b25e88
Merge from projects/sendfile:
...
Use sbcut_locked() instead of manually editing a sockbuf.
Sponsored by: Nginx, Inc.
2014-11-14 15:33:40 +00:00
Andrew Turner
124cd6410c
Add OBJDUMP to sys.mk. The EFI loader uses it however without this it can
...
be set but empty.
Obtained from: ABT Systems
Sponsored by: The FreeBSD Foundation
2014-11-14 14:45:36 +00:00
Edward Tomasz Napierala
be609cace2
Fix mdoc warning.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-14 11:47:27 +00:00
Konstantin Belousov
5fab60a071
In vfs_write_suspend_umnt(), if suspension cannot be established, do
...
not forget to restore write ops count when returning the error.
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2014-11-14 11:31:10 +00:00
Edward Tomasz Napierala
7fe2e170e4
Fix mdoc warning by removing empty lines.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-14 08:58:55 +00:00
Edward Tomasz Napierala
65dd075b31
Add missing commas to .Xr.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-14 08:58:06 +00:00
Gleb Smirnoff
f274e25659
There should not be zero length mbufs in socket buffers. The code comes
...
from r1451, and thus can't be explained. A patch with explicit panic()
here survived all tests.
Tested by: pho
Sponsored by: Nginx, Inc.
2014-11-14 06:02:29 +00:00
Adrian Chadd
7707f31dc5
Migrate the callouts from using mutex locks to being mpsafe with
...
the locks being held by the callers.
Kill callout_drain() and use callout_stop().
2014-11-14 04:26:26 +00:00
Jung-uk Kim
db1ec81edd
Correct a typo to fix chown(2). It was broken since r274476.
...
Pointy hat to: kib
X-MFC-With: r274476
2014-11-13 23:51:13 +00:00
Sean Bruno
2c8c40a7ad
Add more static binaries to the native-xtools target. These help speed
...
up the cross builds significantly.
adding:
bin/sh
bin/csh
sbin/md5
usr.bin/bzip2
usr.bin/fetch
usr.bin/gzip
usr.bin/tar
usr.bin/unzip
usr.bin/xz
Phabric: D1146
Reviewed by: imp bdrewery
MFC after: 2 weeks
2014-11-13 22:25:22 +00:00
Scott Long
18e3d9f521
Extend earlier addition of stack frames to most of support.S. This makes
...
stack traces in KDB, HWPMC, and DTrace much more reliable and useful.
Reviewed by: kan, kib
Obtained from: Netflix, Inc.
MFC after: 5 days
2014-11-13 22:11:44 +00:00
John Baldwin
352176c8cb
- Use the existing driver lock in cdevsw methods and remove D_NEEDGIANT.
...
- Use callout(9) instead of timeout(9).
- Use bus_*() instead of bus_space_*().
- Don't check for a NULL softc in attach.
Tested by: no one
2014-11-13 22:06:57 +00:00
John Baldwin
7ff829cb0e
Lock iir(4) and mark it MPSAFE.
...
- Add a per-device mutex to the softc and use it for bus_dma tags,
CAM SIMs, callouts, and interrupt handler.
- Switch from timeout(9) to callout(9).
- Add a separate global mutex to protect the global event buffer ring.
- Return completed index from iir_intr_locked() and remove the global
gdt_wait_* variables.
- Remove global list of gdt softcs and replace its use with
devclass_get_device().
- Use si_drv1 to store softc pointer in the SDEV_PER_HBA case instead
of minor numbers.
- Do math on osreldate instead of dubious char math on osrelease[]
that didn't work on 10.0+.
- Use bus_*() instead of bus_space_*().
- Use device_printf() instead of printf() with a unit number.
Tested by: no one
2014-11-13 22:00:18 +00:00
Mateusz Guzik
cdce6f654b
filedesc: oops.. commit missing change to filedesc.h
2014-11-13 21:47:43 +00:00
Zbigniew Bodek
8971dd564e
Fix typo in ARM GIC device_printf()
...
Obtained from: Semihalf
Sponsored by: The FreeBSD Foundation
2014-11-13 21:37:53 +00:00
Dimitry Andric
daf03b8dad
The fix imported into llvm in r274442 contains some C++11 constructs,
...
which gcc in base cannot handle. Replace these with C++98 equivalents.
While here, add the patch for the adapted fix.
Reported by: bz, kib
Pointy hat to: dim
MFC after: 1 week
X-MFC-With: r274442
2014-11-13 21:16:01 +00:00
Mateusz Guzik
eb48fbd963
filedesc: fixup fdinit to lock fdp and preapare files conditinally
...
Not all consumers providing fdp to copy from want files.
Perhaps these functions should be reorganized to better express the outcome.
This fixes up panics after r273895 .
Reported by: markj
2014-11-13 21:15:09 +00:00
John Baldwin
14d4e1e250
Drop mention of ISA cards. Note that I have no idea what to cull from the
...
supported hardware list. Judging by the PCI driver attachment, dpt_pci.c
only supports a single adapter rather than the various PCI adapters listed.
The list of EISA adapters listed somewhat overlaps with the device IDs in
dpt_eisa.c. It's not clear which devices are ISA-only devices.
2014-11-13 20:09:47 +00:00
John Baldwin
61691153bd
Remove dpt_isa.c and commented out references to it. It was never connected
...
to the build in either sys/conf/files* or sys/modules/dpt/Makefile. Also,
it was denoted as "doesn't quite work yet" when the file was initially added
(which may account for it never having been hooked up to the build).
2014-11-13 20:00:54 +00:00
John Baldwin
8a38d62c30
Remove reference to sys/dev/dpt/dpt_control.c. It was removed back in 2001 after having
...
never been updated for CAM changes in 1998.
2014-11-13 19:56:02 +00:00
Konstantin Belousov
416be7a1c6
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
...
uc_busy value, and not its address [1].
Remove the single use of the macro, write KASSERT() explicitely in the
code of umtxq_sleep_pi().
Submitted by: Eric van Gyzen <eric@vangyzen.net> [1]
MFC after: 1 week
2014-11-13 18:51:09 +00:00
Alexander Motin
50d75c5b57
Fix check for vendor-specific peripheral qualifier.
...
Submitted by: anton.rang@isilon.com
MFC after: 1 week
2014-11-13 18:15:05 +00:00
Konstantin Belousov
6e646651d3
Remove the no-at variants of the kern_xx() syscall helpers. E.g., we
...
have both kern_open() and kern_openat(); change the callers to use
kern_openat().
This removes one (sometimes two) levels of indirection and
consolidates arguments checks.
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2014-11-13 18:01:51 +00:00
Jung-uk Kim
ea2af5c8bd
Regen test cases for yacc(1) after r274460. YYINT is int now.
...
PR: 194982
2014-11-13 17:54:17 +00:00
Konstantin Belousov
e64b4fa858
Do not try to dereference thread pointer when the value is not a pointer.
...
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2014-11-13 17:44:35 +00:00
Konstantin Belousov
f2c1a52afb
Remove fossil. It has been present in 4.4Lite2, but its use was
...
removed for some time.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
2014-11-13 17:43:37 +00:00
Dmitry Chagin
39fb56696e
Bump FreeBSD_version for r274462 - add ppoll() system call.
2014-11-13 14:46:33 +00:00
Andrey V. Elsukov
f9d8f66552
Count statistics for the specific address family.
...
MFC after: 1 week
Sponsored by: Yandex LLC
2014-11-13 12:58:33 +00:00
Andrey V. Elsukov
612faae7a2
Strip IP header only when we act in tunnel mode.
...
MFC after: 1 week
Sponsored by: Yandex LLC
2014-11-13 10:48:59 +00:00
Andrey V. Elsukov
ab2164e0b5
Remove redundant ip6_plen initialization.
...
MFC after: 1 week
Sponsored by: Yandex LLC
2014-11-13 10:47:24 +00:00
Dmitry Chagin
c28d9d0f9f
Regen for r274462.
2014-11-13 05:28:06 +00:00
Dmitry Chagin
186d9c3473
Add the ppoll() system call.
...
Export kern_poll() needed by an upcoming Linuxulator change.
Differential Revision: https://reviews.freebsd.org/D1133
Reviewed by: kib, wblock
MFC after: 1 month
2014-11-13 05:26:14 +00:00
Navdeep Parhar
aa8d1792d1
iw_cxgbe: don't forget to close the socket in c4iw_connect if soconnect
...
fails.
Submitted by: hariprasad at chelsio dot com
2014-11-13 03:59:36 +00:00
Jung-uk Kim
468bac7080
Increase MAXTABLE to the maxmimum possible value. The default value is too
...
low for complex parsers. Note it was one of those memory optimization hacks
back in the day.
MFC after: 1 week
2014-11-13 00:46:53 +00:00
Luigi Rizzo
0e73f29ae2
add support for private knote lock (reduces lock contention),
...
adapting OS_selrecord accordingly.
Problem and fix suggested by adrian and jmg
2014-11-13 00:40:34 +00:00