Quantcast

PERFORCE change 212551 for review

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

PERFORCE change 212551 for review

John Baldwin
http://p4web.freebsd.org/@@212551?ac=10

Change 212551 by jhb@jhb_fiver on 2012/06/10 02:27:40

        Fix locking bogon.

Affected files ...

.. //depot/projects/fadvise/sys/kern/vfs_subr.c#11 edit

Differences ...

==== //depot/projects/fadvise/sys/kern/vfs_subr.c#11 (text+ko) ====

@@ -1352,12 +1352,12 @@
  error = BUF_TIMELOCK(bp,
     LK_EXCLUSIVE | LK_SLEEPFAIL | LK_INTERLOCK, BO_MTX(bo),
     "detachbuf", slpflag, slptimeo);
- if (error != ENOLCK)
- return (error);
- if (error == EAGAIN) {
+ if (error == ENOLCK) {
  BO_LOCK(bo);
  goto restart;
  }
+ if (error)
+ return (error);
  KASSERT(bp->b_bufobj == bo,
     ("bp %p wrong b_bufobj %p should be %p",
     bp, bp->b_bufobj, bo));
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[hidden email]"
Loading...