hselasky updated this revision to Diff 3809.
hselasky added a comment.
Update diff after r278623. No other changes.
CHANGES SINCE LAST UPDATE
https://reviews.freebsd.org/D1438?vs=3734&id=3809
REVISION DETAIL
https://reviews.freebsd.org/D1438
AFFECTED FILES
share/man/man9/Makefile
share/
hselasky added a comment.
Hi,
rrs + hiren:
I think the problem is this:
In "_callout_stop_safe()" we sometimes exit having "cc_migration_cpu(cc,
direct) = CPUBLOCK;". Now if a second call to "_callout_stop_safe()" happens
before the pending callback has returned, which is using a mutex, we ar
hselasky added a comment.
If you change how "cc_migration_cpu(cc, direct)" works, the
"cc_cce_migrating()" checks become invalid. I think you need to introduce yet
another callout flag
REVISION DETAIL
https://reviews.freebsd.org/D1711
To: rrs, gnn, rwatson, lstewart, jhb, kostikbel, sbr
rrs added a comment.
Hans:
I don't get your call sequence, I sent you an email on it..
Hiren:
Can you go up the call chain and dump the callout structure
c in
0x80760064 in callout_lock (c=0xf8000d81dc98) at
/usr/src/sys/kern/kern_timeout.c:530
There is something funny here, becau
hiren added a comment.
>>! In D1711#88, @rrs wrote:
> Hans:
>
> I don't get your call sequence, I sent you an email on it..
>
> Hiren:
>
> Can you go up the call chain and dump the callout structure
> c in
> 0x80760064 in callout_lock (c=0xf8000d81dc98) at
> /usr/src/sys/kern/kern_
hiren added a comment.
>>! In D1711#86, @hselasky wrote:
> Hi,
>
> rrs + hiren:
>
> I think the problem is this:
>
> In "_callout_stop_safe()" we sometimes exit having "cc_migration_cpu(cc,
> direct) = CPUBLOCK;". Now if a second call to "_callout_stop_safe()" happens
> before the pending cal
On Monday, February 16, 2015 8:50:56 pm Mike Karels wrote:
> On Feb 9, gnn wrote:
>
> > On 8 Feb 2015, at 22:41, Mike Karels wrote:
>
> > > Sorry to reply to a thread after such a long delay, but I think it is
> > > unresolved, and needs more discussion. I'd like to elaborate a bit on
> > > my g
Looks good to me.
Thanks for doing this!
-a
On 16 February 2015 at 17:50, Mike Karels wrote:
> On Feb 9, gnn wrote:
>
>> On 8 Feb 2015, at 22:41, Mike Karels wrote:
>
>> > Sorry to reply to a thread after such a long delay, but I think it is
>> > unresolved, and needs more discussion. I'd li
rrs added a comment.
Hiren:
Thats helpful.. as I said this is strange. The callout you posted shows its
associated with CPU 0, (c_cpu == 0), and yet
the mtx on that (which is what we are spinning on) is free (its owned == 4). So
why would we have crashed
holding the spin lock too long? Unless j
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1870
AFFECTED FILES
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
fr
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1872
AFFECTED FILES
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
fr
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1874
AFFECTED FILES
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
fr
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1868
AFFECTED FILES
lib/libnv/dnv.h
lib/libnv/nv.h
To: rstone, jfvogel
Cc: freebsd-net, pjd
_
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1869
AFFECTED FILES
lib/libnv/Makefile
lib/libnv/tests/Makefile
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
__
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1871
AFFECTED FILES
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
fr
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1660
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1661
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1873
AFFECTED FILES
lib/libnv/tests/nv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
fr
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1659
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1656
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1875
AFFECTED FILES
lib/libnv/tests/Makefile
lib/libnv/tests/dnv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
__
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1655
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1881
AFFECTED FILES
sys/cddl/compat/opensolaris/sys/nvpair.h
To: rstone, jfvogel
Cc: freebsd-net, pjd
_
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION SUMMARY
Almost every operation performed on an nvlist was allocating a
new string to hold the key name. The nvlist_exists* family of
functions would always return false if th
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION SUMMARY
If an nvlist is set as a child of another nvlist with
nvlist_move_nvlist then fail the operation and set the parent
nvlist to the error state.
REVISION DETAIL
https
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1654
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION SUMMARY
Add an nvlist_set_error() function that can be used to force an
nvlist into the error state. This is useful both for writing
tests and for writing APIs that use nvlis
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1658
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1876
AFFECTED FILES
lib/libnv/tests/dnv_tests.cc
To: rstone, jfvogel
Cc: freebsd-net, pjd
___
f
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1877
AFFECTED FILES
sys/conf/files
sys/libkern/asprintf.c
sys/sys/systm.h
To: rstone, jfvogel
Cc: freebsd-net, pjd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1657
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION SUMMARY
Make it possible to compile libnv in the kernel. Mostly this
involves wrapping functions that have a different signature in
the kernel and in userland (e.g. malloc())
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1646
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1652
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION DETAIL
https://reviews.freebsd.org/D1883
AFFECTED FILES
lib/libnv/Makefile
lib/libnv/dnv.h
lib/libnv/dnvlist.c
lib/libnv/nv.h
lib/libnv/nv_impl.h
lib/libnv/nvlist.c
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1651
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1653
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1649
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1650
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1643
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1642
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1647
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1645
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1641
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1644
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rstone closed this revision.
REVISION DETAIL
https://reviews.freebsd.org/D1640
To: rstone, jfvogel
Cc: freebsd-net
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd
rrs added a comment.
Hiren:
There also should have been a printf before the panic string
printf( "spin lock %p (%s) held by %p (tid %d) too long\n",
m, m->lock_object.lo_name, td, td->td_tid);
Can we see what that lovely printf has displayed?
In theory the lo_name should be "callou
hiren added a comment.
>>! In D1711#91, @rrs wrote:
> Hiren:
>
> Thats helpful.. as I said this is strange. The callout you posted shows its
> associated with CPU 0, (c_cpu == 0), and yet
> the mtx on that (which is what we are spinning on) is free (its owned == 4).
> So why would we have crash
rrs added a comment.
Wow, but look at the flags here. They are cc_flags == 0.
That means its *not* on the wheel and yet the thing it points to
(our victim) *thinks* its on the wheel.
This is not good.. We are stuck in a lock
trying to reschedule the timeout (a lock that is
not locked by the way
hiren added a comment.
>>! In D1711#92, @rrs wrote:
> Hiren:
>
> There also should have been a printf before the panic string
> printf( "spin lock %p (%s) held by %p (tid %d) too long\n",
> m, m->lock_object.lo_name, td, td->td_tid);
>
> Can we see what that lovely printf has displa
Hi,
I hope this is correct mailing list to report an issue in network.subr.
At line 764 in function ipv6_down() & file /etc/network.subr , shouldn't the
statement 'case $_inet in ' be 'case $_inet6 in'.
Thanks
Ashutosh
=
rrs added a comment.
Hiren:
You have the wrong structure type.
In the printf before panic it is giving you the lock that was spinning.. that
would be in the callout_cpu structure I bet.. I mis-told you in email.
So if you did
print *(struct callout_cpu *)0x81364180
It should show you
Just modified the subject for more relevance.
Thanks,
Ashutosh
+91 9899653573
-Original Message-
From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org] On
Behalf Of Ashutosh Kumar
Sent: Tuesday, February 17, 2015 11:59 PM
To: freebsd-net@freebsd.org
Subject: FreeBSD
hiren added a comment.
>>! In D1711#96, @rrs wrote:
> Hiren:
>
> You have the wrong structure type.
>
> In the printf before panic it is giving you the lock that was spinning.. that
> would be in the callout_cpu structure I bet.. I mis-told you in email.
>
> So if you did
>
> print *(struct ca
hselasky added a comment.
randall: Let me try to explain a bit slower:
Assume that a callout has been cancelled and is now migrating to another CPU.
c->c_cpu = CPUBLOCK.
Upon calling _callout_stop_safe() we will enter the callout_lock() function
which will wait for the condition "c->c_cpu == C
rrs added a comment.
Hans:
Let me explain to you how I think you are wrong, you are missing a
small subtle thing here
When we do the callout_stop we set
cc_migration_cpu() = CPUBLOCK
*NOT*
c->c_cpu = CPUBLOCK;
You are confusing the two things. The CPUBLOCK is used
in two different places
hselasky added a comment.
randall: You are right I confused the two c_cpu values.
Let my try to shoot again:
static struct callout_cpu *
callout_cpu_switch(struct callout *c, struct callout_cpu *cc, int new_cpu)
{
struct callout_cpu *new_cc;
MPASS(c != NULL && cc != NULL);
rrs added a comment.
Hans:
I think your wrong here. The caller of callout_cpu_switch() is holding
the CC_LOCK(). Now there are only two callers of this function.
Either the actual callout code itself (softclock_call_cc()) or
the callout_reset_sbt_on(). In the case of callout_reset_sbt_on().
So
wblock added a subscriber: wblock.
wblock added a comment.
This is as much as I have time for at the moment. I'll add doc to the
reviewers list
INLINE COMMENTS
share/man/man9/timeout.9:73 That is kind of a difficult sentence to parse.
Does this retain the meaning?
API is used to schedu
wblock added a reviewer: doc.
REVISION DETAIL
https://reviews.freebsd.org/D1438
To: hselasky, jhb, adrian, markj, emaste, sbruno, imp, lstewart, rwatson, gnn,
rrs, kostikbel, delphij, neel, erj, remkolodder, bcr, brueffer, brd, allanjude,
wblock
Cc: wblock, freebsd-net
___
On Feb 17, 2015, at 10:29, Ashutosh Kumar wrote:
> At line 764 in function ipv6_down() & file /etc/network.subr , shouldn't the
> statement 'case $_inet in ' be 'case $_inet6 in'.
You are correct. I just fixed this.
Thanks!
--
Rui Paulo
___
freebs
61 matches
Mail list logo