Re: [PATCH] COMPARE_AND_WRITE: Fix this opcode so it works according to SBC

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

 



[Sending once more as vger bounced the previous mail - sorry for the duplicates]

2012/11/17 Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
>
> After reading SBC again it becomes a lot more clear how this
> opcode works.
> Reactivate the opcode and implement it properly.
> Compare the first "number of blocks" from DATA-OUT with the existing
> content of these blocks on the LUN.
> If it compare ok, then overwrite these block on the lun with the
> next "number of blocks" from the DATA-OUT buffer.

How is atomicity guaranteed? CMIIW (it's been a while that I looked
into TGT code), but I think another backing store thread could modify
the data concurrently.

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


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux