Re: [PATCH 5/5] CUSE: implement CUSE - Character device in Userspace

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Friday, November 21, 2008 - 10:16 pm

On Thu, 20 Nov 2008 23:23:03 +0900 Tejun Heo <tj@kernel.org> wrote:


I'd suggest removal of the :1 here.  If someone later comes along and
adds another bitfield next to it, locking will be needed to prevent
racess accessing the bitfields, and I seeno appropriate lock here, nor
any comment explaining the locking..


You might want to check the generated code here.  gcc has a habit of
assembling a temp structure on the stack then memcpying it over, which
is just junk.  This will be gcc version dependent.  Fixable by using an
old-fashioned memset instead.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHSET] CUSE: implement CUSE, take #2, Tejun Heo, (Thu Nov 20, 7:22 am)
[PATCH 2/5] FUSE: export symbols to be used by CUSE, Tejun Heo, (Thu Nov 20, 7:23 am)
[PATCH 4/5] FUSE: add fuse_conn-&gt;release(), Tejun Heo, (Thu Nov 20, 7:23 am)
Re: [PATCH 5/5] CUSE: implement CUSE - Character device in ..., Andrew Morton, (Fri Nov 21, 10:16 pm)