Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qeth: remove locks from sysfs _show

Locking is probably unnecessary in this case, and the rest of the
qeth sysfs code does not use locks in the *_show() functions.
Remove locks from the layer2 *_show() functions in which they where
accidentally introduced.

Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eugene Crosser and committed by
David S. Miller
d3c29a5c c88394e7

-8
-8
drivers/s390/net/qeth_l2_sys.c
··· 23 23 if (!card) 24 24 return -EINVAL; 25 25 26 - mutex_lock(&card->conf_mutex); 27 - 28 26 if (qeth_card_hw_is_reachable(card) && 29 27 card->options.sbp.supported_funcs) 30 28 rc = qeth_bridgeport_query_ports(card, ··· 56 58 else 57 59 rc = sprintf(buf, "%s\n", word); 58 60 } 59 - 60 - mutex_unlock(&card->conf_mutex); 61 61 62 62 return rc; 63 63 } ··· 119 123 if (!card) 120 124 return -EINVAL; 121 125 122 - mutex_lock(&card->conf_mutex); 123 - 124 126 enabled = card->options.sbp.hostnotification; 125 - 126 - mutex_unlock(&card->conf_mutex); 127 127 128 128 return sprintf(buf, "%d\n", enabled); 129 129 }