[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+8MBbKU5AB5zpYQB6pHegA2V1=8q123fxyFERsHjWCLK5iCsw@mail.gmail.com>
Date: Tue, 10 Jul 2012 10:12:17 -0700
From: Tony Luck <tony.luck@...el.com>
To: Borislav Petkov <bp@...64.org>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Chen Gong <gong.chen@...ux.intel.com>,
"Huang, Ying" <ying.huang@...el.com>,
Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>
Subject: Re: [PATCH] x86/mce: Need to let kill_proc() send signal to doomed process
On Tue, Jul 10, 2012 at 8:44 AM, Borislav Petkov <bp@...64.org> wrote:
> Acked-by: Borislav Petkov <borislav.petkov@....com>
Thanks for the Ack.
+ doit = !!PageDirty(ppage) || !!(flags & MF_MUST_KILL);
Thinking about this some more, the "!!" are redundant
and are an impediment to readability. We started with
!!PageDirty(ppage) when we were passing an argument
directly to kill_procs() and wanted to make sure we had a
nice boolean value. But the result of the "||" is boolean,
so we don't need to double negate.
I'm going to change it to:
doit = PageDirty(ppage) || (flags & MF_MUST_KILL);
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists