Skip to content

ieee1394: nodemgr: misc API conversions

Stefan Richter lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ieee1394: nodemgr: remove unnecessary includesdrivers/ieee1394/nodemgr.c+0 -40 replies
2/6ieee1394: do not spawn a kernel_thread for user-initiated bus rescandrivers/ieee1394/nodemgr.c+2 -170 replies
3/6ieee1394: make module parameter ignore_drivers writabledrivers/ieee1394/nodemgr.c+1 -10 replies
4/6ieee1394: nodemgr: switch to kthread APIdrivers/ieee1394/nodemgr.c+27 -660 replies
5/6ieee1394: nodemgr: replace reset semaphoredrivers/ieee1394/nodemgr.c+23 -220 replies
6/6ieee1394: convert nodemgr_serialize semaphore to mutexdrivers/ieee1394/nodemgr.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 2.6.17-rc6-mm2 0/6] ieee1394: nodemgr: misc API conversions

The following patches clean up and convert API usages in ieee1394/nodemgr.c. Parts of this patch series supersede the previously posted variants of "[PATCH] kthread conversion: convert ieee1394 from kernel_thread".

1/6 ieee1394: nodemgr: remove unnecessary includes
2/6 ieee1394: do not spawn a kernel_thread for user-initiated bus rescan 3/6 ieee1394: make module parameter ignore_drivers writable 4/6 ieee1394: nodemgr: switch to kthread API
5/6 ieee1394: nodemgr: replace reset semaphore
6/6 ieee1394: convert nodemgr_serialize semaphore to mutex

 drivers/ieee1394/nodemgr.c |  151 +++++++++++--------------------------
 1 files changed, 47 insertions(+), 104 deletions(-)

In case someone actually puts these patches to test and finds a lockup or something more serious, please check if it isn't this older bug:
http://bugzilla.kernel.org/show_bug.cgi?id=6706
Two things which I could not test are behaviour on actual SMP machines and the try_to_freeze() business.

Patch 3/6 is not an API conversion but is loosely related to patch 2/6.

After this patchset, all usages of the kernel_thread API are removed from the ieee1394 subsystem. Two usages of semaphores are replaced. The following semaphores are still remaining in drivers/ieee1394:

dv1394.c:                video->sem       (simple mutex-type semaphore)
highlevel.c:             hl_drivers_sem   (RW semaphore)
ieee1394_transactions.c: tp->count        (counting semaphore)
nodemgr.c:               subsys.rwsem     (driver core's RW semaphores)
raw1394.c:               fi->complete_sem (completion semaphore)
Signature · 3 lines
Stefan Richter
-=====-=-==- -==- =--=-
http://arcgraph.de/sr/