* [PATCH] ubifs: create the name of the background thread in every case
@ 2008-09-09 9:17 Sebastian Siewior
2008-09-09 12:11 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Siewior @ 2008-09-09 9:17 UTC (permalink / raw)
To: Artem Bityutskiy, Adrian Hunter; +Cc: linux-mtd
If the ubifs partition is mounted RO and then remounted RW we end
up with no thread name in ubifs_remount_rw() and the thread appears
nameless.
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
---
fs/ubifs/super.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index f71e6b8..2fcf272 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -1018,14 +1018,13 @@ static int mount_ubifs(struct ubifs_info *c)
goto out_dereg;
}
+ sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id);
if (!mounted_read_only) {
err = alloc_wbufs(c);
if (err)
goto out_cbuf;
/* Create background thread */
- sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num,
- c->vi.vol_id);
c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
if (!c->bgt)
c->bgt = ERR_PTR(-EINVAL);
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ubifs: create the name of the background thread in every case
2008-09-09 9:17 [PATCH] ubifs: create the name of the background thread in every case Sebastian Siewior
@ 2008-09-09 12:11 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2008-09-09 12:11 UTC (permalink / raw)
To: Sebastian Siewior; +Cc: linux-mtd, Adrian Hunter
On Tue, 2008-09-09 at 11:17 +0200, Sebastian Siewior wrote:
> If the ubifs partition is mounted RO and then remounted RW we end
> up with no thread name in ubifs_remount_rw() and the thread appears
> nameless.
Pushed to ubifs-2.6.git, thanks.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-09 12:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09 9:17 [PATCH] ubifs: create the name of the background thread in every case Sebastian Siewior
2008-09-09 12:11 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox