Re: panic: System call lstat returning with 1 locks held

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yar Tikhiy <yar@...>
Cc: Kostik Belousov <kostikbel@...>, Doug Barton <dougb@...>, <freebsd-current@...>
Date: Wednesday, January 30, 2008 - 11:07 am

2008/1/30, Yar Tikhiy <yar@comp.chem.msu.su>:

Sorry but I had to delay the operation so far.
In the end, a suitable patch is located here:
http://www.freebsd.org/~attilio/witness_lockmgr.diff

I tried it and it alredy reported 4 LORs just when booting the kernel :)
So I would expect reasonably LOR cascades with this patch.

If you all 3 (Scot, Yar and Doug) could try and test it I would
appreciate a lot.

Thanks,
Attilio

PS: This is the commit log to perforce:
Add WITNESS support to lockmgr.
       A couple of notes:
       - Two options have been added in order to serve WITNESS:
               * LK_NOWITNESS which disables the support for the specified
                 lock
               * LK_NODUP which disallows the usual DUPOK behaviour
                 assumed as the default with lockmgr
       - In the case of lockmgr_disown() the lock is simply dropped.
         This means that a printout won't show the lock held even if it
         is basically held by LK_KERNPROC
       - In the case of upgrade we can have 3 different cases:
               * The shared lock is unheld but consequent acquisition
                 fails; in this case the lock is reported dropped
               * We are the first upgrader so there is an effective
                 WITNESS_UPGRADE
               * We are not the first upgrader so after the shared unlocking
                 we need to acquire the lock in exclusive mode; this will be
                 reported with 2 different WITNESS steps.
       - In the case of LK_DRAIN the lock will be only checked about the
         order but it won't be marked as acquired. This happens because a
         drained lock is directly destroyed and not really released, so
         witness_destroy() would badly panic in this case
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
panic: System call lstat returning with 1 locks held, Scot Hetzel, (Tue Jan 15, 9:52 am)
Re: panic: System call lstat returning with 1 locks held, Kostik Belousov, (Tue Jan 15, 10:39 am)
Re: panic: System call lstat returning with 1 locks held, Attilio Rao, (Wed Jan 30, 11:07 am)
Re: panic: System call lstat returning with 1 locks held, Pawel Jakub Dawidek, (Thu Jan 17, 7:40 am)
Re: panic: System call lstat returning with 1 locks held, Norikatsu Shigemura, (Fri Jan 18, 12:55 pm)
Re: panic: System call lstat returning with 1 locks held, Kris Kennaway, (Wed Jan 16, 5:55 am)
Re: panic: System call lstat returning with 1 locks held, John Baldwin, (Wed Jan 16, 11:11 am)