Date: Thu, 15 Nov 2012 18:10:50 +0000 From: Attilio Rao <attilio@freebsd.org> To: Adrian Chadd <adrian@freebsd.org> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, freebsd-hackers@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFQ] make witness panic an option Message-ID: <CAJ-FndBrynv0BZxn0jUqYOD9oYGBAkn5W%2BDjY6Y_gghhVwp5VA@mail.gmail.com> In-Reply-To: <CAJ-VmomtgeaFfp0M3u_DGHzKcTkPeBbYcmw=dbsedh8t=ba9-A@mail.gmail.com> References: <CAJ-Vmo=i=Amo_QqHi4GnGie0Gc0YnK3XaRKjvBO-=SFboFYPmA@mail.gmail.com> <1353001175.1217.153.camel@revolution.hippie.lan> <CAJ-FndBP5Pi=SCpyBLK3b=HM_gQ9u8M4%2B1tLk9tA5X-gqismVA@mail.gmail.com> <47374EC3-5022-49AC-A17E-7F234A88B5C6@bsdimp.com> <CAJ-VmokcgHMYZC2v_fGvBBk1MfzkkfOecaJ%2B3MQrBN4nRG5GCA@mail.gmail.com> <CAJ-FndC=JtgsLNWEcws32RmBgtegxPV%2BTXBi%2BPwYQhsRYxNDFg@mail.gmail.com> <CAJ-VmomtgeaFfp0M3u_DGHzKcTkPeBbYcmw=dbsedh8t=ba9-A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/15/12, Adrian Chadd <adrian@freebsd.org> wrote: > On 15 November 2012 10:01, Attilio Rao <attilio@freebsd.org> wrote: >> I think that your worries are focused more around the latter than the >> former, which can be easilly shut down already today. >> >> And frankly I will never be in favor of a patch that automatically >> shutdowns lock assertion. Please patch your local code to do so but >> don't add any generic/upstream/all-around mechanism for that. > > Would a comprimise be ok? Ie, if I pushed everything but the sysctl > upstream, and just defaulted it to always panic? > > That way my diff wouldn't have to be a big thing; I'd just add the sysctl. I cannot forbid you from doing anything, I'm just giving you my opinion as the person who co-authored current WITNESS and locking primitives code. I think what you want to do is dangerous and highly abusable, so I'm not in favor of it at all, in whatever form it is. I understand you want to minimize your development patchset with upstream, but I think this is certainly not the way to go. That's also why I never formalized the BLESSING mechanism in WITNESS, for example. I already see WITNESS_KDB as an abuse, but at least until we have a way to make specific LOR (based on file/line, unfortunately) to be marked as "harmless" there is no way we can get rid of WITNESS_KDB. Said all that, you are free to do what you want, but if you commit anything in this area make sure your patch is reviewed by someone else and to state my firm disagreement with this approach in the commit message. Attilio -- Peace can only be achieved by understanding - A. Einstein _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-FndBrynv0BZxn0jUqYOD9oYGBAkn5W%2BDjY6Y_gghhVwp5VA>