Re: Update of file offset on write() etc. is non-atomic with I/O

From: George Spelvin
Date: Mon Mar 03 2014 - 19:07:59 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
On Mon, Mar 3, 2014 at 1:26 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>> Most of the cases have it kept separately in registers, actually - there's
>> a reason why fdget() and friends are inlined.

> Yes. And bit test and set ops on registers are actually cheaper than
> playing around with bytes.

Ah. I cut & pasted the code into a separate file and compiled it
out of line. But I stubbed a lot, so it went to memory. My bad.

> Oh, and George, your email setup is broken. Gmail thinks your emails
> are spam. I'm not sure why (the usual spf problems do not apply), but
> it's possibly because your name and email looks made up.

Thanks, but damn, I wish they'd give a little more information.

The horizon.com MX record is correct, the mail server's forward and
reverse DNS matches, the SMTP server is a little creaky but I think it's
completely standards-compliant.

I'm using bsd mailx, which is *definitely* creaky (you'll notice a
complete lack of MIME or User-Agent headers), but again, it's kind of
the baseline standard for RFC(2)822 e-mail.

The one infelicity I'm aware of is that I cut & pasted the headers from
an on-line mail archive, but mailx doesn't have an easy way to add
an In-Reply-To: header. Perhaps a Subject: beginning with "Re:" and
no In-Reply-To: looks odd.

But damnifino.
--
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/