{"id":219,"url":"http://patchwork.ozlabs.org/api/1.0/patches/219/?format=json","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/1.0/projects/3/?format=json","name":"Linux MTD development","link_name":"linux-mtd","list_id":"linux-mtd.lists.infradead.org","list_email":"linux-mtd@lists.infradead.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20080909091729.GA18689@www.tglx.de>","date":"2008-09-09T09:17:29","name":"ubifs: create the name of the background thread in every case","commit_ref":"0855f310dff76ae42c5aac32f600f8f692bbd23f","pull_url":null,"state":"accepted","archived":true,"hash":"e31fbc795b09f00151dd9e2c0c50b083bde82b50","submitter":{"id":86,"url":"http://patchwork.ozlabs.org/api/1.0/people/86/?format=json","name":"Sebastian Andrzej Siewior","email":"bigeasy@linutronix.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/patch/20080909091729.GA18689@www.tglx.de/mbox/","series":[],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/219/checks/","tags":{},"headers":{"Return-Path":"<linux-mtd-bounces+patchwork=ozlabs.org@lists.infradead.org>","X-Original-To":"patchwork@ozlabs.org","Delivered-To":"patchwork@ozlabs.org","Received":["from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id 7334EDDFD4\n\tfor <patchwork@ozlabs.org>; Tue,  9 Sep 2008 21:13:05 +1000 (EST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux))\n\tid 1Kd19A-00047l-Qz; Tue, 09 Sep 2008 11:12:36 +0000","from www.tglx.de ([62.245.132.106])\n\tby bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux))\n\tid 1KczLv-00057i-S5; Tue, 09 Sep 2008 09:17:41 +0000","from www.tglx.de (www.tglx.de [127.0.0.1])\n\tby www.tglx.de (8.13.8/8.13.8/TGLX-2007100201) with ESMTP id\n\tm899HUp6019752\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);\n\tTue, 9 Sep 2008 11:17:30 +0200","(from bigeasy@localhost)\n\tby www.tglx.de (8.13.8/8.13.8/Submit) id m899HTrE019750;\n\tTue, 9 Sep 2008 11:17:29 +0200"],"Date":"Tue, 9 Sep 2008 11:17:29 +0200","From":"Sebastian Siewior <bigeasy@linutronix.de>","To":"Artem Bityutskiy <dedekind@infradead.org>,\n\tAdrian Hunter <ext-adrian.hunter@nokia.com>","Subject":"[PATCH] ubifs: create the name of the background thread in every\n\tcase","Message-ID":"<20080909091729.GA18689@www.tglx.de>","Mime-Version":"1.0","Content-Disposition":"inline","User-Agent":"Mutt/1.4.2.2i","X-Key-Id":"97C4700B","X-Key-Fingerprint":"09E2 D1F3 9A3A FF13 C3D3  961C 0688 1C1E 97C4 700B","X-Virus-Scanned":"ClamAV 0.93.2/8196/Tue Sep  9 03:02:39 2008 on www.tglx.de","X-Virus-Status":"Clean","X-Spam-Status":"No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL\n\tautolearn=failed version=3.2.4","X-Spam-Checker-Version":"SpamAssassin 3.2.4 (2008-01-01) on www.tglx.de","X-Spam-Score":"0.0 (/)","Cc":"linux-mtd@lists.infradead.org","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.9","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"linux-mtd-bounces@lists.infradead.org","Errors-To":"linux-mtd-bounces+patchwork=ozlabs.org@lists.infradead.org"},"content":"If the ubifs partition is mounted RO and then remounted RW we end\nup with no thread name in ubifs_remount_rw() and the thread appears\nnameless.\n\nSigned-off-by: Sebastian Siewior <bigeasy@linutronix.de>","diff":"diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c\nindex f71e6b8..2fcf272 100644\n--- a/fs/ubifs/super.c\n+++ b/fs/ubifs/super.c\n@@ -1018,14 +1018,13 @@ static int mount_ubifs(struct ubifs_info *c)\n \t\tgoto out_dereg;\n \t}\n \n+\tsprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id);\n \tif (!mounted_read_only) {\n \t\terr = alloc_wbufs(c);\n \t\tif (err)\n \t\t\tgoto out_cbuf;\n \n \t\t/* Create background thread */\n-\t\tsprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num,\n-\t\t\tc->vi.vol_id);\n \t\tc->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);\n \t\tif (!c->bgt)\n \t\t\tc->bgt = ERR_PTR(-EINVAL);\n","prefixes":[]}