[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080826220823.509571fd@lxorguk.ukuu.org.uk>
Date: Tue, 26 Aug 2008 22:08:23 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Rajiv Andrade <srajiv@...ux.vnet.ibm.com>
Cc: linux-kernel@...r.kernel.org, zohar@...ibm.com,
dvelarde@...ibm.com, serue@...ibm.com, safford@...ibm.com
Subject: Re: [PATCH][resubmit] TPM: update char dev BKL pushdown
> + atomic_set(&chip->is_open, 1);
> + get_device(chip->dev); /* protect from chip disappearing */
Why not just use test_and_set_bit() ? You seem to be abusing atomic_t to
achieve this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists