linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* help backporting workqueue to 2.4; for net/sunrpc/cache.c
@ 2003-07-04 11:35 Frank Cusack
  2003-07-04 12:07 ` Neil Brown
  2003-07-04 16:21 ` Marc-Christian Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Cusack @ 2003-07-04 11:35 UTC (permalink / raw)
  To: lkml

Hi all,

Should I expect any problems backporting the 2.5 workqueue.c to 2.4?
It looks pretty straightforward, but I am {naive,novice}.  The only
interesting looking bit is setting current->flags |= PF_IOTHREAD,
which doesn't exist in 2.4.  At a glance, it looks like I can ignore
this; it's used in suspend.c which doesn't exist in 2.4 either.

The reason I'd like to backport this is because of changes in sunrpc
which now use the workqueue to clean auth caches.  Related question:
how is this (periodic cache clean) done in 2.5.73 and earlier?
net/sunrpc/cache.c didn't use the workqueue until 2.5.74.

Any advice is appreciated.

thanks
/fc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help backporting workqueue to 2.4; for net/sunrpc/cache.c
  2003-07-04 11:35 help backporting workqueue to 2.4; for net/sunrpc/cache.c Frank Cusack
@ 2003-07-04 12:07 ` Neil Brown
  2003-07-04 16:21 ` Marc-Christian Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2003-07-04 12:07 UTC (permalink / raw)
  To: Frank Cusack; +Cc: lkml

On Friday July 4, fcusack@fcusack.com wrote:
> Hi all,
> 
> Should I expect any problems backporting the 2.5 workqueue.c to 2.4?
> It looks pretty straightforward, but I am {naive,novice}.  The only
> interesting looking bit is setting current->flags |= PF_IOTHREAD,
> which doesn't exist in 2.4.  At a glance, it looks like I can ignore
> this; it's used in suspend.c which doesn't exist in 2.4 either.
> 
> The reason I'd like to backport this is because of changes in sunrpc
> which now use the workqueue to clean auth caches.  Related question:
> how is this (periodic cache clean) done in 2.5.73 and earlier?
> net/sunrpc/cache.c didn't use the workqueue until 2.5.74.

The nfsd threads called cache_clean() from nfsd() in nfsd/nfssvc.c,
whenever they didn't have anything else to do, but this wasn't really
often enough.  You could probably get them to do it after every
request as cache_clean() does virtually nothing unless there is
evidence that something needs doing.

NeilBrown


> 
> Any advice is appreciated.
> 
> thanks
> /fc
> -
> 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help backporting workqueue to 2.4; for net/sunrpc/cache.c
  2003-07-04 11:35 help backporting workqueue to 2.4; for net/sunrpc/cache.c Frank Cusack
  2003-07-04 12:07 ` Neil Brown
@ 2003-07-04 16:21 ` Marc-Christian Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Marc-Christian Petersen @ 2003-07-04 16:21 UTC (permalink / raw)
  To: Frank Cusack, lkml

On Friday 04 July 2003 13:35, Frank Cusack wrote:

Hi Frank,

> Should I expect any problems backporting the 2.5 workqueue.c to 2.4?
http://marc.theaimsgroup.com/?l=linux-kernel&m=103885818416173&w=2

ciao, Marc


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-04 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04 11:35 help backporting workqueue to 2.4; for net/sunrpc/cache.c Frank Cusack
2003-07-04 12:07 ` Neil Brown
2003-07-04 16:21 ` Marc-Christian Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).