Re: [PATCH] w1: Introduce a slave mutex for serializing IO.
From: Evgeniy Polyakov
Date: Thu May 03 2012 - 17:27:07 EST
On Fri, May 04, 2012 at 07:08:38AM +1000, NeilBrown (neilb@xxxxxxx) wrote:
> You can only check the owner on SMP builds, or when debugging is enabled.
> So I don't think that approach can work.
You can store owner in master device and protect with mutex itself.
On non-smp systems it can not be preempted, so can be checked without
mutex.
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/