ieee1394: raw1394: narrow down the state_mutex protected region
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 16 Aug 2008 15:52:04 +0000 (17:52 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 15 Oct 2008 20:21:08 +0000 (22:21 +0200)
commitddfb908d3f905dbb5964d6fbf783e69c417eb13e
tree9c271214e94eab002378daee5d6c8f8cbebb5762
parent10963ea1bd966ba46a46178c4d6abcdf3c23538d
ieee1394: raw1394: narrow down the state_mutex protected region

Refactor the ioctl dispatcher in order to move a fraction of it out of
the section which is serialized by fi->state_mutex.  This is not so much
about performance but more about self-documentation:  The mutex_lock()/
mutex_unlock() calls are now closer to the data accesses which the mutex
protects, i.e. to the iso_state switch.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/raw1394.c