OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> writes: > Jens Axboe <jens.axboe@xxxxxxxxxx> writes: > >> But we don't already have this problem, that is the point. For page >> cache writes, the page cache nicely solves this issue for us - a write >> that comes in later gets to wait on the page lock before proceeding. So >> at least it's ordered. For O_DIRECT, the issuer is on his own. >> >> I think this is a serious problem and that we must ensure that an >> overlapping write doesn't pass a previously issued discard request. So >> in that sense, discards must be considered soft barriers. > > Um.., if blocks used by data (page cache) is reused as directory (meta > data), it can happen? Ugh, sorry, can't happen. forget it. FWIW, it would happen, if someone directly access to device mounted by fs, it can.. But it's user's fault already. -- OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html