Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753566Ab0KBPK5 (ORCPT ); Tue, 2 Nov 2010 11:10:57 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51351 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195Ab0KBPKv (ORCPT ); Tue, 2 Nov 2010 11:10:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=PIrzrjbtsxIXdAHb8/t4PDciUjS1lUX0LIxWzdVUfubt7/GmpLBOhKFllEQgT5OS8E s3pnC3PBGFqf9i4hawdsa2WghrN3JNcVq2f9eG3Xij0wkKQF4MA0oDHqYuDaKFov/Dbx 0NMaRqsXAdfTQzbZSwsE2kj/YUFKrwH9jrhkQ= MIME-Version: 1.0 Date: Wed, 3 Nov 2010 00:10:50 +0900 Message-ID: Subject: [BUGFIX][PATCH] fix wrong VM_BUG_ON() in try_charge()'s mm->owner check From: Hiroyuki Kamezawa To: linux-mm@kvack.org Cc: KAMEZAWA Hiroyuki , balbir@linux.vnet.ibm.com, nishimura@mxp.nes.nec.co.jp, Andrew Morton , linux-kernel@vger.kernel.org, kosaki.motohiro@jp.fujitsu.com, hughd@gmail.com Content-Type: multipart/mixed; boundary=0016e6dab1828c9da804941354f2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3637 Lines: 59 --0016e6dab1828c9da804941354f2 Content-Type: text/plain; charset=ISO-8859-1 I'm sorry for attached file, I have to use unusual mailer this time. This is a fix for wrong VM_BUG_ON() for mm/memcontol.c Thanks, -Kame --0016e6dab1828c9da804941354f2 Content-Type: application/octet-stream; name="fix-mm-owner-check.patch" Content-Disposition: attachment; filename="fix-mm-owner-check.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gg0wx5k80 QXQgX19tZW1fY2dyb3VwX3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GJlIE5VTEwgd2l0aAorCQkgKiByYWNlIHdpdGggc3dh cG9mZi4gVGhlbiwgd2UgaGF2ZSBzbWFsbCByaXNrIG9mIG1pcy1hY2NvdW5pbmcuCisJCSAqIEJ1 dCBzdWNoIGtpbmQgb2YgbWlzLWFjY291bnQgYnkgcmFjZSBhbHdheXMgaGFwcGVucyBiZWNhdXNl CisJCSAqIHdlIGRvbid0IGhhdmUgY2dyb3VwX211dGV4KCkuIEl0J3Mgb3ZlcmtpbGwgYW5kIHdl IGFsbG8gdGhhdAorCQkgKiBzbWFsbCByYWNlLCBoZXJlLgorCQkgKiAoKikgc3dhcG9mZiBhdCBl bCB3aWxsIGNoYXJnZSBhZ2FpbnN0IG1tLXN0cnVjdCBub3QgYWdhaW5zdAorCQkgKiB0YXNrLXN0 cnVjdC4gU28sIG1tLT5vd25lciBjYW4gYmUgTlVMTC4KIAkJICovCiAJCW1lbSA9IG1lbV9jZ3Jv dXBfZnJvbV90YXNrKHApOwotCQlWTV9CVUdfT04oIW1lbSk7Ci0JCWlmIChtZW1fY2dyb3VwX2lz X3Jvb3QobWVtKSkgeworCQlpZiAoIW1lbSB8fCBtZW1fY2dyb3VwX2lzX3Jvb3QobWVtKSkgewog CQkJcmN1X3JlYWRfdW5sb2NrKCk7CiAJCQlnb3RvIGRvbmU7CiAJCX0K --0016e6dab1828c9da804941354f2-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/