staging: android: logger: reorder prepare_to_wait and mutex_lock
authorTim Bird <tim.bird@am.sony.com>
Wed, 8 Feb 2012 02:30:09 +0000 (18:30 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 25 Apr 2012 22:24:15 +0000 (01:24 +0300)
commit0825222d57d7478ad1ec168712c8389b2ef5a71b
tree601306655b46a2b9939beb89712d0ea3ecd67007
parent7b1951efaa7a225a8e235b52171c6cba8f9d12fb
staging: android: logger: reorder prepare_to_wait and mutex_lock

If mutex_lock waits, it will return in state TASK_RUNNING,
rubbing out the effect of prepare_to_wait().

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c