From: Jeremy Kerr Date: Tue, 29 Sep 2015 04:14:16 +0000 (+0800) Subject: discover/ipmi: Use advisory locking on ipmi device X-Git-Tag: v1.0.0~39 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=420f0e2c5d8338b42047c58f055cdb944685ead7;hp=420f0e2c5d8338b42047c58f055cdb944685ead7 discover/ipmi: Use advisory locking on ipmi device The ipmi module is shared between pb-config and pb-discover. During system initilisation, we're likely to have a few invocations of pb-config running, as well as pb-discover starting. We may have multiple potential concurrent accesses to the ipmi device node. To avoid problems, this change introduces a fcntl lock on the device node. Signed-off-by: Jeremy Kerr ---