Bruce Evans d02601f8cf Fixed rev.1.81. mp->mnt_kern_flag was restored in the non-error case of
`mount -u'.  This only matters for `mount -u' competing with unmounts.
If I understand the locking correctly: if mount() blocks, then unmount()
may run and set mp->kern_flag for the same mp.  Then unmount() blocks
waiting for mount() to finish.  When unmount() continues, its MNTK flags
(MNTK_UNMOUNT and MNTK_MWAIT) may have been clobbered.

Didn't fix old bugs:
- restoring mp->mnt_kern_flag is wrong for the same reasons in the error
  case.
- the error case of unmount() seems to be broken too:
  (a) MNTK_UNMOUNT gets clobbered, although another unmount() may have
      set it.  Perhaps it shouldn't be set until after the full lock is
      aquired.
  (b) MNTK_MWAIT isn't honoured.

Fixed a nearby style bug.
1997-11-22 06:10:36 +00:00
..
1997-09-02 20:06:59 +00:00
1997-09-02 20:06:59 +00:00
1997-08-02 14:33:27 +00:00
1997-08-02 14:33:27 +00:00
1997-11-18 12:24:22 +00:00
1997-11-20 16:36:17 +00:00
1997-09-02 20:06:59 +00:00
1997-10-28 15:59:26 +00:00
1997-11-18 12:24:22 +00:00
1997-11-18 12:24:22 +00:00
1997-10-28 15:59:26 +00:00
1997-06-14 11:38:46 +00:00
1997-09-16 11:44:05 +00:00
1997-09-14 02:50:28 +00:00
1997-09-14 02:52:18 +00:00
1997-08-02 14:33:27 +00:00
1997-09-14 03:19:42 +00:00
1997-09-16 11:44:05 +00:00
1997-09-16 11:44:05 +00:00
1997-10-28 15:59:26 +00:00
1997-08-02 14:33:27 +00:00
1997-11-09 05:07:40 +00:00
1997-11-18 13:03:48 +00:00
1997-11-12 05:42:33 +00:00
1997-10-26 20:26:33 +00:00
1997-11-12 05:42:33 +00:00
1997-10-28 15:59:26 +00:00
1997-10-28 15:59:26 +00:00
1997-10-16 20:32:40 +00:00