kernel -- ffs: Softdep lock and assorted fixes
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 7 May 2012 15:28:48 +0000 (08:28 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 7 May 2012 15:36:11 +0000 (08:36 -0700)
commited396d1431f325d45909808aaaf5adab84200f12
treea0319cdb115482a043cecc34bfe466d7e99a2fc2
parenta4d7a8cb555c18e0d9d9b3fdb8828cc354e6ad7a
kernel -- ffs: Softdep lock and assorted fixes

* Remove interlocked_sleep; we can just use lksleep directly

* sema_get no longer eats the interlock passed in; all of its
  callers were retaking the lock eventually or immediately.

* softdep was setting up a callout to wake itself in request_cleanup.
  Switch to directly using timeout in lksleep for this purpose.

* Do not access inodedep structure outside of softdep lock in
  softdep_update_inodeblock for buffer field.

* Remove prio field from semaphores; they were unused and the DFly
  tsleep routines do not respect priority anyway.

* Do not release softdep lock before panic()ing
sys/vfs/ufs/ffs_softdep.c