23 Jan
2005
23 Jan
'05
13:57
Thanks Konstantin, it seems this does not compile with 2.6.11-rc2: drivers/block/pktcdvd.c: In function `pkt_new_dev': drivers/block/pktcdvd.c:2363: error: `PF_SYNCTHREAD' undeclared (first use in this function) compi@smiley:~/work/external/linux-2.6.11-rc2$ grep -lri PF_SYNCTHREAD . ./drivers/block/pktcdvd.c compi@smiley:~/work/external/linux-2.6.11-rc2$ Thanks, compi On Sun, 2005-01-23 at 15:22 +0300, Konstantin A. Lepikhov wrote: > Hi Attila! > > Saturday 22, at 04:59:49 PM you wrote: > > > Hi, > > > > I am playinh with packet writing again since it is included in the main > > 2.6 tree, and having lots of problems. > > > > First, this freezing umount thingy also hits me, however emergency sync > > seems to be working. Also could be relvante information that after > > trying to umount the dvd+rw, I cannot umount _anything_ even a hdd > > partition mounted just to back it up to dvd. > > > > I'm runing 2.6.11-pre1, pktcdvd 0.2.0a > > > > Any ideas? > Looks like you use kernel with swsusp2 patches, because I got this problem > too - cannot mount/umount/tear down pkt device. Googling gives me solution > - inline patch from Peter Osterlund. > > --- a/drivers/block/pktcdvd.c~ 2005-01-23 14:22:56 +0300 > +++ a/drivers/block/pktcdvd.c 2005-01-23 15:08:51 +0300 > @@ -2364,7 +2364,7 @@ static int pkt_new_dev(struct pktcdvd_de > pkt_init_queue(pd); > > atomic_set(&pd->cdrw.pending_bios, 0); > - pd->cdrw.thread = kthread_run(kcdrwd, pd, "%s", pd->name); > + pd->cdrw.thread = kthread_run(kcdrwd, pd, PF_SYNCTHREAD, "%s", pd->name); > if (IS_ERR(pd->cdrw.thread)) { > printk("pktcdvd: can't start kernel thread\n"); > ret = -ENOMEM; >