]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC: 'alfred' command.
alfred [Sat, 29 Jan 2011 08:14:47 +0000 (08:14 +0000)]
MFC: 'alfred' command.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217702:
jhb [Fri, 28 Jan 2011 20:21:41 +0000 (20:21 +0000)]
MFC 217702:
Restore support for the 'async' and 'sync' mount options lost when
switching to nmount(2).  While here, sort the options.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217416:
jhb [Fri, 28 Jan 2011 20:06:39 +0000 (20:06 +0000)]
MFC 217416:
Add two more features to cpuset(1):
- Add a new -C flag to create a new cpuset and move an existing pid into
  that set.
- Allow 'all' to be specified for a cpu list (e.g. cpuset -s 1 -l all)
  which maps to the list of all CPUs in the system.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217755 r217822
jpaetzel [Fri, 28 Jan 2011 18:25:51 +0000 (18:25 +0000)]
MFC: r217755 r217822

This script parses output of userland tools. In the case of a faulted
zpool the output causes the script to bail out with syntax errors.
Since a scrub of a faulted zpool is pointless, just skip over any
pools marked as such.

PR: conf/150228
Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoIn uart_tty_outwakeup(), check CTS/RTS flow control settings and
marcel [Fri, 28 Jan 2011 00:22:03 +0000 (00:22 +0000)]
In uart_tty_outwakeup(), check CTS/RTS flow control settings and
prevent sending data when CTS is de-asserted.
In uart_tty_intr(), call uart_tty_outwakeup() when the CTS signal
changed, knowing that uart_tty_outwakeup() will do the right
thing for flow control. This avoids redundant conditionals.

PR: kern/148644
Submitted by: John Wehle <john@feith.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r217200 from head:
gavin [Thu, 27 Jan 2011 23:16:41 +0000 (23:16 +0000)]
Merge r217200 from head:

  Sync the list of devices supported by uslcom(4) with Linux, bringing in
  all new devices added between our r211022 and their git revision
  93ad03d60b5b18897030038234aa2ebae8234748

  Also correct a Foxconn entry.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217997 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r217264 from head:
gavin [Thu, 27 Jan 2011 23:07:03 +0000 (23:07 +0000)]
Merge r217264 from head:

  Remove a bullet point that appears to have been accidentally inserted twice.
  It has also been included within the feature lists to which it is relevant.

Submitted by: tobez

git-svn-id: svn://svn.freebsd.org/base/stable/8@217994 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r217061, r217274, r217275 from head:
gavin [Thu, 27 Jan 2011 23:05:29 +0000 (23:05 +0000)]
Merge r217061, r217274, r217275 from head:

- Support the Uniform Industrial Corp (UIC) MSR206 Magnetic Card Reader.

- Improve or fix some comments.

- Update the uplcom(4) man page to reflect the devices currently supported by
  uplcom(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217993 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217872: Unbreak .Dd line.
cperciva [Thu, 27 Jan 2011 21:40:31 +0000 (21:40 +0000)]
MFC r217872: Unbreak .Dd line.

Approved by:    re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217237,217291:
jhb [Thu, 27 Jan 2011 21:32:50 +0000 (21:32 +0000)]
MFC 217237,217291:
- Fix two harmless off-by-one errors.
- Always use PRI_BASE() when checking the base type of a thread's priority
  class.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217078,217079: Various priority fixes for creating new threads:
jhb [Thu, 27 Jan 2011 21:16:23 +0000 (21:16 +0000)]
MFC 217078,217079: Various priority fixes for creating new threads:
- Move sched_fork() later in fork() after the various sections of the new
  thread and proc have been copied and zeroed from the old thread and
  proc.  Otherwise attempts to modify thread or process data in sched_fork()
  could be undone.
- Don't copy td_{base,}_user_pri from the old thread to the new thread in
  sched_fork_thread() in ULE.  This is already done courtesy the bcopy()
  of the thread copy region.
- Always initialize the real priority (td_priority) of new threads to the
  new thread's base priority (td_base_pri) to avoid bogusly inheriting a
  borrowed priority from the parent thread.
- Properly initialize the base priority (td_base_pri) of thread0 to PVM
  to match the desired priority in td_priority.  Otherwise the first time
  thread0 used a borrowed priority it would drop down to PUSER instead of
  PVM.
- Explicitly initialize the starting priority of new kprocs to PVM to
  avoid inheriting some random priority from thread0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217077:
jhb [Thu, 27 Jan 2011 20:12:18 +0000 (20:12 +0000)]
MFC 217077:
Only change the priority of timeshare threads to PRI_MAX_TIMESHARE
when yield() is called.  Specifically, leave the priority of real time
and idle threads unchanged.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217076:
jhb [Thu, 27 Jan 2011 20:09:20 +0000 (20:09 +0000)]
MFC 217076:
- Restore dropping the priority of syncer down to PPAUSE when it is idle.
  This was lost when it was converted to using a condition variable instead
  of lbolt.
- Drop the priority of flowtable down to PPAUSE when it is idle as well
  since it is a similar background task.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198787
remko [Thu, 27 Jan 2011 19:11:11 +0000 (19:11 +0000)]
MFC r198787

  Document the WWWSUPFILE variable.

  PR:  137723
  Submitted by: Sofian Brabez <sbrabez at gmail dot com>
  Approved by: imp (mentor, implicit)
  MFC after: 3 days
  Facilitated by: Snow B.V.

PR: 137723

git-svn-id: svn://svn.freebsd.org/base/stable/8@217959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216552:
yongari [Thu, 27 Jan 2011 19:05:43 +0000 (19:05 +0000)]
MFC r216552:
  Document JMC251/JMC261 support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216551:
yongari [Thu, 27 Jan 2011 19:02:28 +0000 (19:02 +0000)]
MFC r216551:
  Add support for JMicron JMC251/JMC261  Gigabit/Fast ethernet
  controller with Card Read Host Controller. These controllers are
  multi-function devices and have the same ethernet core of
  JMC250/JMC260. Starting from REVFM 5(chip full mask revision)
  controllers have the following features.
   o eFuse support
   o PCD(Packet Completion Deferring)
   o More advanced PHY power saving

  Because these controllers started to use eFuse, station address
  modified by driver is permanent as if it was written to EEPROM. If
  you have to change station address please save your controller
  default address to safe place before reprogramming it. There is no
  way to restore factory default station address.

  Many thanks to JMicron for continuing to support FreeBSD.

  HW donated by: JMicron

git-svn-id: svn://svn.freebsd.org/base/stable/8@217954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216546,216548-216550:
yongari [Thu, 27 Jan 2011 18:44:05 +0000 (18:44 +0000)]
MFC r216546,216548-216550:
r216546:
  Consistently put a tab character between #define and the macro name.

r216548:
  Fix a regression introduced in r213893. FPGA version requires PHY
  probing so allow PHY probing on all possible addresses.

r216549:
  Make sure whether driver allocated resource before releasing it.

r216550:
  Use system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
  number.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216438:
yongari [Thu, 27 Jan 2011 18:37:10 +0000 (18:37 +0000)]
MFC r216438:
  Remove unecessary and clearly wrong usage of atomic(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216362:
yongari [Thu, 27 Jan 2011 18:31:07 +0000 (18:31 +0000)]
MFC r216362:
  Remove unecessary and clearly wrong usage of atomic(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217509:
mav [Thu, 27 Jan 2011 13:53:21 +0000 (13:53 +0000)]
MFC r217509:
Fix 32bit bit fields handling. This fixes card serial number fetching.
It was just a cosmetic issue, because that number is only reported in logs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208441:
mav [Thu, 27 Jan 2011 13:52:23 +0000 (13:52 +0000)]
MFC r208441:
Report relative card address to NewBus as location string.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215725:
mav [Thu, 27 Jan 2011 13:43:33 +0000 (13:43 +0000)]
MFC r215725:
Fix small typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215936:
mav [Thu, 27 Jan 2011 13:40:03 +0000 (13:40 +0000)]
MFC r215936:
Do hard reset before soft reset for SATA channels. Soft reset reported to be
not enough to restore device readiness in some situations.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215451:
mav [Thu, 27 Jan 2011 13:38:52 +0000 (13:38 +0000)]
MFC r215451:
Record that there is no devices if SATA reset found none.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215449:
mav [Thu, 27 Jan 2011 13:37:45 +0000 (13:37 +0000)]
MFC r215449:
Some VIA SATA controllers provide access to non-standard SATA registers via
PCI config space. Use them to implement hot-plug and link speed reporting.
Tested on ASRock PV530 board with VX900 chipset.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217633:
kib [Thu, 27 Jan 2011 09:52:31 +0000 (09:52 +0000)]
MFC r217633:
In tmpfs_readdir(), normalize handling of the directory entries that
either overflow the supplied buffer, or cause uiomove fail.
Do not advance cached de when directory entry was not copied out.
Do not return EOF when no entries could be copied due to first entry
too large for supplied buffer, signal EINVAL instead.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217869,217870: Fix .Dd lines in re(4) and nfe(4).
cperciva [Thu, 27 Jan 2011 09:01:00 +0000 (09:01 +0000)]
MFC r217869,217870: Fix .Dd lines in re(4) and nfe(4).
k

git-svn-id: svn://svn.freebsd.org/base/stable/8@217927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216486,216764:
jhb [Wed, 26 Jan 2011 20:36:04 +0000 (20:36 +0000)]
MFC 216486,216764:
Use bus_alloc_resource_any() instead of bus_alloc_resource().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217908 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216621: Fix a typo in a comment.
jhb [Wed, 26 Jan 2011 20:29:11 +0000 (20:29 +0000)]
MFC 216621: Fix a typo in a comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217905 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216590:
jhb [Wed, 26 Jan 2011 20:26:46 +0000 (20:26 +0000)]
MFC 216590:
Don't whine about child drivers calling pci_enable_busmaster().  That is
perfectly normal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoCleanup mergeinfo a bit.
jhb [Wed, 26 Jan 2011 20:18:56 +0000 (20:18 +0000)]
Cleanup mergeinfo a bit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216334:
jhb [Wed, 26 Jan 2011 20:14:03 +0000 (20:14 +0000)]
MFC 216334:
When reopening a stream backed by an open file descriptor, do not close
the existing file descriptor.  Instead, let dup2() atomically close the
old file descriptor when assigning the newly opened file to the same
descriptor.  This closes a race in a multithreaded application where a
concurrent open() could allocate the existing file descriptor in between
the calls to close() and dup2().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216235,216236:
jhb [Wed, 26 Jan 2011 20:08:53 +0000 (20:08 +0000)]
MFC 216235,216236:
When masking direct and processor devices during an inquiry, properly
preserve the upper bits of the first data byte.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217590:
bschmidt [Wed, 26 Jan 2011 16:59:07 +0000 (16:59 +0000)]
MFC r217590:
Jump to the next element and not to an arbitrary point. frm[1] contains
the element's data length, frm[2] is the first byte of the element's data.

Submitted by: Monthadar Al Jaberi <monthadar at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217747:
kib [Wed, 26 Jan 2011 08:39:34 +0000 (08:39 +0000)]
MFC r217747:
Fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge from head to stable/8:
scf [Tue, 25 Jan 2011 23:25:23 +0000 (23:25 +0000)]
Merge from head to stable/8:

r216813:
Fix the LINUX_SOUND_MIXER_INFO ioctl to return success after the
information is set to FreeBSD.  It had been falling through to the end
of linux_ioctl_sound() and returning ENOIOCTL.  Noticed when running the
Linux ALSA amixer tool.

Add a LINUX_SOUND_MIXER_READ_CAPS ioctl which is used by the Skype
v2.1.0.81 binary.

Reviewed by: gavin

git-svn-id: svn://svn.freebsd.org/base/stable/8@217867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217134: sed: Add test for r217863 (-i race).
jilles [Tue, 25 Jan 2011 23:04:57 +0000 (23:04 +0000)]
MFC r217134: sed: Add test for r217863 (-i race).

r217863 is the MFC of r217133.

PR: bin/153261

git-svn-id: svn://svn.freebsd.org/base/stable/8@217864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217133: sed: Try hard links to make -i target available continually.
jilles [Tue, 25 Jan 2011 23:02:25 +0000 (23:02 +0000)]
MFC r217133:   sed: Try hard links to make -i target available continually.

When creating a backup file, sed renamed the original before renaming the
changed copy into place, leading to a short time when no file with the
original name was present (usually only visible on SMP systems). Try
creating the backup file using a hard link instead, avoiding this problem.
If creating the hard link fails for any reason, fall back to the old rename
method.

When not creating a backup file, sed already renamed the changed copy onto
the original. This remains unchanged.

PR: bin/153261
Submitted by: Pedro F. Giffuni
Reviewed by: dds (older version)
Obtained from: Illumos

git-svn-id: svn://svn.freebsd.org/base/stable/8@217863 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214835:
jhb [Tue, 25 Jan 2011 22:08:22 +0000 (22:08 +0000)]
MFC 214835:
Adjust the order of operations in spinlock_enter() and spinlock_exit() to
work properly with single-stepping in a kernel debugger.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217855 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217484: mknod(2): The required include is <sys/stat.h>, not <unistd.h>.
jilles [Tue, 25 Jan 2011 21:45:00 +0000 (21:45 +0000)]
MFC r217484: mknod(2): The required include is <sys/stat.h>, not <unistd.h>.

This is what SUSv4 requires, and also the only thing that works if strict
standards compliance is requested or mknodat() is needed.

PR: standards/123688
Submitted by: gcooper

git-svn-id: svn://svn.freebsd.org/base/stable/8@217853 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214675:
jhb [Tue, 25 Jan 2011 20:59:47 +0000 (20:59 +0000)]
MFC 214675:
Don't leak the LLE lock if the arptimer callout is pending or inactive.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217848 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 215541:
jhb [Tue, 25 Jan 2011 20:54:15 +0000 (20:54 +0000)]
MFC 215541:
Set the POSIX semaphore capability when the semaphore module is enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 215540:
jhb [Tue, 25 Jan 2011 20:48:48 +0000 (20:48 +0000)]
MFC 215540:
Set various POSIX capability sysctls to the version of the API that is
supported rather than 1.  They are supposed to return a suitable value
for sysconf(3).  While here, make the fsync sysctl match <unistd.h>.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 204329,210723,210933,214778,215526:
jhb [Tue, 25 Jan 2011 20:44:11 +0000 (20:44 +0000)]
MFC 204329,210723,210933,214778,215526:
Sync mfiutil(8) with HEAD:
- Handle malloc() failures more gracefully by error'ing out rather than
  segfaulting.
- Fixed dependencies (make checkdpadd).
- Fix typos and spelling mistakes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211514,214158:
jhb [Tue, 25 Jan 2011 20:33:12 +0000 (20:33 +0000)]
MFC 211514,214158:
- There isn't really a need to hold the ktrace mutex just to read the
  value of p_traceflag that is stored in the kinfo_proc structure.
- When disabling ktracing on a process, free any pending requests that
  may be left.  This fixes a memory leak that can occur when tracing is
  disabled on a process via disabling tracing of a specific file (or if
  an I/O error occurs with the tracefile) if the process's next system
  call is exit().  The trace disabling code clears p_traceflag, so exit1()
  doesn't do any KTRACE-related cleanup leading to the leak.  I chose to
  make the free'ing of pending records synchronous rather than patching
  exit1().
- Move KTRACE-specific logic out of kern_(exec|exit|fork).c and into
  kern_ktrace.c instead.  Make ktrace_mtx private to kern_ktrace.c as a
  result.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214144:
jhb [Tue, 25 Jan 2011 19:44:42 +0000 (19:44 +0000)]
MFC 214144:
- Make 'vm_refcnt' volatile so that compilers won't be tempted to treat
  its value as a loop invariant.  Currently this is a no-op because
  'atomic_cmpset_int()' clobbers all memory on current architectures.
- Use atomic_fetchadd_int() instead of an atomic_cmpset_int() loop to drop
  a reference in vmspace_free().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217727
thompsa [Tue, 25 Jan 2011 19:27:05 +0000 (19:27 +0000)]
MFC r217727

 Revert the ndis part of r212122, windrv_stub.c already adds a MODULE_VERSION
 and this breaks loading miniport drivers from loader.conf

git-svn-id: svn://svn.freebsd.org/base/stable/8@217834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217564:
kib [Tue, 25 Jan 2011 10:20:36 +0000 (10:20 +0000)]
MFC r217564:
Make the length of the LDT a loader tunable, machdep.max_ldt_segment,
and export it with read-only sysctl. Remove unused defines.

MFC r217604:
Use CTLFLAG_RDTUN for read-only sysctl that exports tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217563:
kib [Tue, 25 Jan 2011 10:17:37 +0000 (10:17 +0000)]
MFC r217563:
Use malloc(9) instead of kmem_alloc(9) for temporal copy of the
user-supplied descriptor array.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217561:
kib [Tue, 25 Jan 2011 10:14:12 +0000 (10:14 +0000)]
MFC r217561:
For architectures not using direct map , and requiring real KVA page for
sf buf allocation, use wakeup() instead of wakeup_one() to notify sf
buffer waiters about free buffer.

sf_buf_alloc() calls msleep(PCATCH) when SFB_CATCH flag was given,
and for simultaneous wakeup and signal delivery, msleep() returns
EINTR/ERESTART despite the thread was selected for wakeup_one(). As
result, we loose a wakeup, and some other waiter will not be woken up.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217587
jkim [Mon, 24 Jan 2011 18:11:37 +0000 (18:11 +0000)]
MFC: r217587

Fix yet another fallout from r208833.  VM86 BIOS call may cause page fault
when FPU is in use.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217707 Don't do flow control if parameter is unchanged
jfv [Mon, 24 Jan 2011 18:07:57 +0000 (18:07 +0000)]
MFC 217707 Don't do flow control if parameter is unchanged

git-svn-id: svn://svn.freebsd.org/base/stable/8@217797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217706 Add missing case for 82598DA to phy detect
jfv [Mon, 24 Jan 2011 18:05:49 +0000 (18:05 +0000)]
MFC 217706 Add missing case for 82598DA to phy detect

git-svn-id: svn://svn.freebsd.org/base/stable/8@217796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217705 - remove bogus TX UNLOCK
jfv [Mon, 24 Jan 2011 18:03:45 +0000 (18:03 +0000)]
MFC 217705 - remove bogus TX UNLOCK

git-svn-id: svn://svn.freebsd.org/base/stable/8@217795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217148, 217786:
gjb [Mon, 24 Jan 2011 15:17:10 +0000 (15:17 +0000)]
MFC 217148, 217786:
Document rc.conf.d in rc.conf(5).

PR: 140495
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217649:
yongari [Sun, 23 Jan 2011 02:15:50 +0000 (02:15 +0000)]
MFC r217649:
  Correct wrong definition of PM timer mask and adjust L1/PM timer
  value. While I'm here enable all clocks before initializing
  controller. This change should fix lockup issue seen on AR8152
  v1.1 PCIe Fast Ethernet controller.

  PR: kern/154076

git-svn-id: svn://svn.freebsd.org/base/stable/8@217740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217583:
kib [Sat, 22 Jan 2011 11:29:13 +0000 (11:29 +0000)]
MFC r217583:
Add missed ().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217463:
kib [Sat, 22 Jan 2011 11:27:10 +0000 (11:27 +0000)]
MFC r217463:
For consistency, use kernel_object instead of &kernel_object_store
when initializing the object mutex. Do the same for kmem_object.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217593:
jfv [Sat, 22 Jan 2011 01:48:12 +0000 (01:48 +0000)]
MFC rev 217593:

Critical fix for panic on 82598
Phy detection now dynamic
Flow Director improvement
Critical fix for buf sz (jumbos)
Release RX lock to fix LOR

git-svn-id: svn://svn.freebsd.org/base/stable/8@217713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217127 - correct a couple SYSCTL variables
jfv [Sat, 22 Jan 2011 01:43:07 +0000 (01:43 +0000)]
MFC rev 217127 - correct a couple SYSCTL variables

git-svn-id: svn://svn.freebsd.org/base/stable/8@217712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217591
jfv [Sat, 22 Jan 2011 01:37:53 +0000 (01:37 +0000)]
MFC rev 217591

git-svn-id: svn://svn.freebsd.org/base/stable/8@217711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217295
jfv [Sat, 22 Jan 2011 01:34:08 +0000 (01:34 +0000)]
MFC rev 217295

git-svn-id: svn://svn.freebsd.org/base/stable/8@217710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217424
jkim [Fri, 21 Jan 2011 18:31:57 +0000 (18:31 +0000)]
MFC: r217424

Remove redundant, bogus, and even harmful uses of setting TS bit in CR0.
It is done from fpstate_drop() when it is really necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217698: unifdef-2.5.6
fanf [Fri, 21 Jan 2011 18:18:55 +0000 (18:18 +0000)]
MFC r217698: unifdef-2.5.6

git-svn-id: svn://svn.freebsd.org/base/stable/8@217699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216667:
trasz [Fri, 21 Jan 2011 17:53:40 +0000 (17:53 +0000)]
MFC r216667:

The 'kern.corefile="whatever"' syntax won't work with sysctl.conf; remove
the quotes to not mislead people.

MFC r216668:

Fix date, broken in r216667.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217535
rmacklem [Fri, 21 Jan 2011 01:24:00 +0000 (01:24 +0000)]
MFC: r217535
Fix the experimental NFSv4 server so that it uses VOP_ACCESSX()
to check for VREAD_ACL instead of VOP_ACCESS().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217432
rmacklem [Fri, 21 Jan 2011 01:12:22 +0000 (01:12 +0000)]
MFC: r217432
Modify the experimental NFSv4 server so that it posts a SIGUSR2
signal to the master nfsd daemon whenever the stable restart
file has been modified. This will allow the master nfsd daemon
to maintain an up to date backup copy of the file. This is
enabled via the nfssvc() syscall, so that older nfsd daemons
will not be signaled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217417
marius [Fri, 21 Jan 2011 00:53:32 +0000 (00:53 +0000)]
MFC: r217417

- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Just let the default case handle all unsupported media types.
- In pnphy_status() don't unnecessarily read a register twice.
- Remove unnused macros.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217414
marius [Fri, 21 Jan 2011 00:50:34 +0000 (00:50 +0000)]
MFC: r217414

- Don't announce PAUSE support for half-duplex when MIIF_FORCEPAUSE is
  set.
- Let mii_phy_auto() also announce PAUSE support for 10baseT-FDX.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217413
marius [Fri, 21 Jan 2011 00:48:04 +0000 (00:48 +0000)]
MFC: r217413

- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Simplify ciphy_service() to only set the manual configuration bits
  once after we have figured them all out. This also means we no longer
  unnecessarily update the hardware along the road.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217412
marius [Fri, 21 Jan 2011 00:40:25 +0000 (00:40 +0000)]
MFC: r217412

- Masking IFM_GMASK when also masking IFM_FDX is redundant and just
  complicates the code.
- Don't let atphy_setmedia() announce PAUSE support for half-duplex when
  MIIF_FORCEPAUSE is set.
- Simplify e1000phy_service() and ip1000phy_service() to only set the
  manual configuration bits once after we have figured them all out. For
  ip1000phy_service() this also means we no longer unnecessarily update
  the hardware along the road.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217548:
yongari [Fri, 21 Jan 2011 00:33:10 +0000 (00:33 +0000)]
MFC r217548:
  Rework RX filter programming by providing separate handler for
  DP8381[56] and SiS 900/7016 controllers.  After r212119, sis(4) no
  longer reinitializes controller if ALLMULTI/PROMISC was changed.
  However, RX filter handling code assumed some bits of the RX filter
  is programmed by driver initialization. This caused ALLMULTI/PROMISC
  configuration is ignored under certain conditions.
  Fix that issue by reprogramming all bits of RX filter register.
  While I'm here follow recommended RX filter programming steps
  recommended by National DP8381[56] data sheet(RX filter should be
  is disabled before programming).

  Reported by: Paul Schenkeveld < freebsd () psconsult dot nl >
  Tested by: Paul Schenkeveld < freebsd () psconsult dot nl >

git-svn-id: svn://svn.freebsd.org/base/stable/8@217668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217511:
bschmidt [Thu, 20 Jan 2011 18:41:46 +0000 (18:41 +0000)]
MFC r217511:
Pull ieee80211_ratectl_node_init() calls from drivers into net80211.
This fixes hostap mode for at least ral(4) and run(4), because there is
no sufficient call into drivers which could be used initialize the node
related ratectl variables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217040:
nwhitehorn [Thu, 20 Jan 2011 15:06:42 +0000 (15:06 +0000)]
MFC r217040:

Add an entry to the gpart XML to determine if the geom has pending changes
that need to be committed (or undone).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217640 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203135
thompsa [Wed, 19 Jan 2011 22:29:19 +0000 (22:29 +0000)]
MFC r203135

Hook run(4) to the build.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203134,r207990,r217289
thompsa [Wed, 19 Jan 2011 22:25:07 +0000 (22:25 +0000)]
MFC r203134,r207990,r217289

Add manpages for run(4) and runfw(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217481 and r217606 from /head
keramida [Wed, 19 Jan 2011 21:49:21 +0000 (21:49 +0000)]
MFC r217481 and r217606 from /head

r217481...
  Fix the mount example of xfs(5) filesystems by including the read-only
  option.  We only support ro mounts for xfs, so it’s nice if the examples
  we show in the manpage are easy to copy/paste.

  PR:           docs/149106
  Submitted by: amdmi3

r217606...
  Bump .Dd date of manpage for r217481

git-svn-id: svn://svn.freebsd.org/base/stable/8@217608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r199985 from /head
keramida [Wed, 19 Jan 2011 21:34:42 +0000 (21:34 +0000)]
MFC r199985 from /head

Describe what setpgid(2) does when pgid=0.  The text has been
copied from NetBSD’s manpage, and it also matches the behavior
described by the Open Group’s online copy of setpgid.2 at
http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html

Obtained from:        NetBSD
Submitted by:         Petros Barbayiannis <petrosbarbayiannis@yahoo.gr>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205978 from /head
keramida [Wed, 19 Jan 2011 21:28:00 +0000 (21:28 +0000)]
MFC r205978 from /head

Document DEBUG_FLAGS in a more visible place, in the build(7) manpage

Noticed by:     Alexander Best <alexbestms.at.wwu.de>
Reviewed by:    jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@217601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217064 - sort & fix includes, remove -include from CFLAGS of acct tests
keramida [Wed, 19 Jan 2011 21:09:39 +0000 (21:09 +0000)]
MFC r217064 - sort & fix includes, remove -include from CFLAGS of acct tests

- Sort the includes of pack.c, moving sys/*.h files near the top.
- Add a couple of missing #include lines, and remove the need for
  custom -include options in the CFLAGS of the test Makefile.
- Remove the ad-hoc ’all’ target, but keep its ’regress’ bits for
  testing.
- Convert the ad-hoc ’clean’ target to proper CLEANFILES stuff,
  so that the normal bsd.prog.mk machinery can clean up.
- Use ‘make -V .OBJDIR’ to detect the place where ’pack’ lives,
  so that regress.t works both with and without ’make obj’.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217599 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix buildworld on pre-8.2.
fjoe [Wed, 19 Jan 2011 09:59:54 +0000 (09:59 +0000)]
Fix buildworld on pre-8.2.

PR: 153947

git-svn-id: svn://svn.freebsd.org/base/stable/8@217576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217305:
ae [Wed, 19 Jan 2011 05:13:40 +0000 (05:13 +0000)]
MFC r217305:
  Sector size can not be greater than MAXPHYS. Since GRAID3 calculates
  sector size from user-specified block size, report to user about
  big blocksize.

  PR: kern/147851

git-svn-id: svn://svn.freebsd.org/base/stable/8@217572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217303:
ae [Wed, 19 Jan 2011 05:08:32 +0000 (05:08 +0000)]
MFC r217303:
  Sector size can not be greater than MAXPHYS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r204707 by scottl
imp [Wed, 19 Jan 2011 03:59:30 +0000 (03:59 +0000)]
MFC r204707 by scottl

Ignore the result of the chflags operation to allow it to continue
when doing an installation over NFS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217176
rmacklem [Wed, 19 Jan 2011 01:26:49 +0000 (01:26 +0000)]
MFC: r217176
Modify readdirplus in the experimental NFS server in a
manner analogous to r216633 for the regular server. This
change busies the file system so that VFS_VGET() is
guaranteed to be using the correct mount point even
during a forced dismount attempt. Since nfsd_fhtovp() is
not called immediately before readdirplus, the patch is
actually a clone of pjd@'s nfs_serv.c.4.patch instead of
the one committed in r216633.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217567 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix mismerge. The missing _cxgb=cxgb assignment was causing cxgb to
imp [Tue, 18 Jan 2011 20:26:40 +0000 (20:26 +0000)]
Fix mismerge.  The missing _cxgb=cxgb assignment was causing cxgb to
not be built at all, rather than causing it to not be built on just
arm and mips.

# The merge info looks correct, so this looks like a direct commit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC unifdef-2.5
fanf [Tue, 18 Jan 2011 19:31:38 +0000 (19:31 +0000)]
MFC unifdef-2.5

git-svn-id: svn://svn.freebsd.org/base/stable/8@217551 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205682:
jh [Tue, 18 Jan 2011 16:49:51 +0000 (16:49 +0000)]
MFC r205682:

Support only LOOKUP operation for "/" in relookup() because lookup()
can't succeed for CREATE, DELETE and RENAME.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217464, r217468, r217475
marius [Tue, 18 Jan 2011 11:51:48 +0000 (11:51 +0000)]
MFC: r217464, r217468, r217475

Add a manual page for rgephy(4) and reference it as appropriate. The
motivation for having rgephy.4 is to document the special media option
added in r217415 (MFC'ed to stable/8 in r217502).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216952:
kib [Tue, 18 Jan 2011 10:42:13 +0000 (10:42 +0000)]
MFC r216952:
Mark some devices as eternal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217262:
ae [Tue, 18 Jan 2011 06:24:52 +0000 (06:24 +0000)]
MFC r217262:
  Round GNOP provider's mediasize to its sectorsize. This prevents KASSERT
  in g_io_request when geom classes doing tasting.

  PR: kern/147852

MFC r217263:
  Remove redundant check.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217242
rmacklem [Tue, 18 Jan 2011 01:20:15 +0000 (01:20 +0000)]
MFC: r217242
Fix a bug in the client side krpc where it was, sometimes
erroneously, assumed that 4 bytes of data were in the first
mbuf of a list by replacing the bcopy() with m_copydata().
Also, replace the uses of m_pullup(), which can fail for
reasons other than not enough data, with m_copydata().
For the cases where it isn't known that there is enough
data in the mbuf list, check first via m_len and m_length().
This is believed to fix a problem reported by dpd at dpdtech.com
and george+freebsd at m5p.com.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217527 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217066
rmacklem [Tue, 18 Jan 2011 01:07:09 +0000 (01:07 +0000)]
MFC: r217066
Delete the NFS_STARTWRITE() and NFS_ENDWRITE() macros that
obscured vn_start_write() and vn_finished_write() for the
old OpenBSD port, since most uses have been replaced by the
correct calls.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217063
rmacklem [Tue, 18 Jan 2011 00:53:55 +0000 (00:53 +0000)]
MFC: r217063
Since the VFS_LOCK_GIANT() code in the experimental NFS
server is broken and the major file systems are now all
mpsafe, modify the server so that it will only export
mpsafe file systems. This was discussed on freebsd-fs@
and removes a fair bit of crufty code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216835:
bschmidt [Mon, 17 Jan 2011 20:22:03 +0000 (20:22 +0000)]
MFC r216835:
The mwl's HAL manages an array of MWL_MBSS_MAX VAPs where the first 8 are
supposed to be APs and the later 24 are pre-configured as STAs. A wrong
condition during initialization is responsible for not configuring the last
8 array members. This is results in being able to create more than 8,
possible uninitialized, AP-VAPs.

Submitted by: Erik Fonnesbeck <efonnes at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217118:
bschmidt [Mon, 17 Jan 2011 20:19:35 +0000 (20:19 +0000)]
MFC r217118:
Don't try to free an unassigned pointer.

Submitted by: Paul B Mahol <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217245:
mav [Mon, 17 Jan 2011 17:23:59 +0000 (17:23 +0000)]
MFC r217245:
Add IDs for HighPoint RocketRAID 64x controllers.

These controllers consist of two Marvell 88SE9128 6Gbps SATA chips and
PLX PCIe bridge. As result, they seem to be agree to work with ahci(4)
as usual HBAs. The only noticed issue is that RAID BIOS disables all
drive caches during boot, though `camcontrol cmd ...` is able to fix that.

Those who wants RAID functionality can still use closed proprietary driver
from HighPoint site.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217415
marius [Mon, 17 Jan 2011 15:12:29 +0000 (15:12 +0000)]
MFC: r217415

- Allow IFM_FLAG0 to be set indicating that auto-negotiation with manual
  configuration, which is used to work around issues with certain setups
  (see r161237) by default, should not be triggered as it may in turn
  cause harm in some edge cases.
- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Announce PAUSE support also for manually selected 1000BASE-T, but for
  all manually selected media types only in full-duplex mode. Announce
  asymmetric PAUSE support only for manually selected 1000BASE-T.
- Simplify setting the manual configuration bits to only once after we
  have figured them all out. This also means we no longer unnecessarily
  update the hardware along the road.
- Remove a stale comment.

Reviewed by: yongari (plus additional testing)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209059 (originally committed by jhb):
lstewart [Mon, 17 Jan 2011 05:45:55 +0000 (05:45 +0000)]
MFC r209059 (originally committed by jhb):

Update several places that iterate over CPUs to use CPU_FOREACH().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217023
rmacklem [Mon, 17 Jan 2011 01:49:47 +0000 (01:49 +0000)]
MFC: r217023
Modify the experimental NFS server so that it calls
vn_start_write() with a non-NULL vp. That way it will
find the correct mount point mp and use that mp for the
subsequent vn_finished_write() call. Also, it should fail
without crashing if the mount point is being forced dismounted
because vn_start_write() will set the mp NULL via VOP_GETWRITEMOUNT().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f