Re: [PATCH RESEND 2/3 v2.6.39-rc7] block: make disk_block_events()properly wait for work cancellation
From: Linus Torvalds
Date: Tue May 17 2011 - 18:47:33 EST
On Tue, May 17, 2011 at 8:27 AM, Tejun Heo <tj@xxxxxxxxxx> wrote:
> Spinlock inside mutex seemed a bit strange but yeah that probably is
> the simpliest way.
Do you really even need the spinlock at all?
Just make the semaphore protect the count - and you're done.
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/