Re: blkdev_issue_discard() hangs forever if the underlying storagedevice is removed

From: Lin Ming
Date: Mon Aug 29 2011 - 10:15:20 EST


On Mon, Aug 29, 2011 at 7:56 PM, Lukas Czerner <lczerner@xxxxxxxxxx> wrote:
>
> Regarding the atomic operations I do not think that implicit memory
> barriers are needed here as atomic_dec_and_test() implies memory

Which implicit memory barrier you are talking about?

> barrier, atomic_set() is out of the scope of our interest (and it would
> not cause the problem like that anyway) and reordering atomic_inc()
> would not cause problem like this as well.
--
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/