Re: i_mutex locking in generic_file_splice_write()

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

 



On Fri, 13 Oct 2006 09:45:17 +0200
Jens Axboe <jens.axboe@xxxxxxxxxx> wrote:

> > Compile tested only. I probably won't get a chance to actually run it until
> > late this weekend at the earliest :/
> 
> Patch looks ok to me. The double lock test only works, as long as splice
> is the only one ever locking both mutexes. Or if others follow the same
> ordering rules. I'm not very well versed in vfs matters, is that
> guarenteed?

Taking the lowest-addressed lock first is the usual convention, if we really
have to do that.  I'm not aware of anywhere else where we pull this
trick with i_mutex though.
-
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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux