Re: [PATCH] Fix race with shared tag queue maps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 13 Sep 2007, Jens Axboe wrote:
> 
> My bad, I think I added the smp_mb__before_clear_bit() when it was
> __test_and_set_bit() like in the first hunk.

Ahh, that wouldn't work at all. The "__test_and_set_bit()" thing isn't 
atomic at all, and no amount of memory barriers around it would help 
(you'd need to use real locking, but at that point the memory barriers are 
pointless anyway).

> +	/*
> +	 * Ensure ordering between ->tag_index[tag] clear and tag clear
> +	 */
> +	smp_mb__after_clear_bit();

You still left this one. But never mind - I already edited your original 
patch and it's in my tree with both of those things removed.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux