ipmi_devintf: Small lock rework
authorCorey Minyard <cminyard@mvista.com>
Thu, 5 Apr 2018 19:40:30 +0000 (14:40 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 18 Apr 2018 15:22:53 +0000 (10:22 -0500)
commit6aa2dd0092d2762cc12cccf5142313858f4153a4
treec3f8064e37de56dab707e1532abdad1a8bb4c0fd
parentaa7a8f9e1b03c75c5288966770bd7f80cddb7b83
ipmi_devintf: Small lock rework

The mutex didn't really serve any useful purpose, from what I can
tell, and it would just get in the way.  So remove it.

Removing that required a mutex around the default value setting and
getting, so just use the receive mutex for that.

Also pull the fasync stuff outside of the lock for adding the data
to the queue, since it didn't need to be there.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_devintf.c