On 09/11/2013 02:12 PM, Miklos Szeredi wrote:
On Fri, Aug 30, 2013 at 1:33 PM, Maxim Patlasov wrote:
08/30/2013 01:13 PM, Miklos Szeredi пишет:
On Thu, Aug 29, 2013 at 6:41 PM, Miklos Szeredi wrote:
BTW, isn't it enough to do the filemap_write_and_wait() *plus* the
fuse_set_nowrite()?
Thou
On Fri, Aug 30, 2013 at 1:33 PM, Maxim Patlasov wrote:
> 08/30/2013 01:13 PM, Miklos Szeredi пишет:
>
>> On Thu, Aug 29, 2013 at 6:41 PM, Miklos Szeredi wrote:
>>>
>>> BTW, isn't it enough to do the filemap_write_and_wait() *plus* the
>>> fuse_set_nowrite()?
>>
>> Thought about it a bit and I thi
08/30/2013 01:13 PM, Miklos Szeredi пишет:
On Thu, Aug 29, 2013 at 6:41 PM, Miklos Szeredi wrote:
BTW, isn't it enough to do the filemap_write_and_wait() *plus* the
fuse_set_nowrite()?
Thought about it a bit and I think this should do fine.
Any writes before the fallocate will go trough befor
On Thu, Aug 29, 2013 at 6:41 PM, Miklos Szeredi wrote:
> BTW, isn't it enough to do the filemap_write_and_wait() *plus* the
> fuse_set_nowrite()?
Thought about it a bit and I think this should do fine.
Any writes before the fallocate will go trough before the fallocate.
i_mutex guarantees that o
BTW, isn't it enough to do the filemap_write_and_wait() *plus* the
fuse_set_nowrite()?
Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Aug 29, 2013 at 08:27:30PM +0400, Maxim Patlasov wrote:
> >So having a barrier like FUSE_NOWRITE is good but then we need to take care
> >of throwing away the truncated part of the queue. But that should be doable
> >by passing the truncated range explicitly to fuse_release_nowrite().
>
Hi,
08/29/2013 07:41 PM, Miklos Szeredi пишет:
On Fri, Aug 16, 2013 at 03:30:27PM +0400, Maxim Patlasov wrote:
The patch fixes a race between mmap-ed write and fallocate(PUNCH_HOLE):
1) An user makes a page dirty via mmap-ed write.
2) The user performs fallocate(2) with mode == PUNCH_HOLE|KEEP
On Fri, Aug 16, 2013 at 03:30:27PM +0400, Maxim Patlasov wrote:
> The patch fixes a race between mmap-ed write and fallocate(PUNCH_HOLE):
>
> 1) An user makes a page dirty via mmap-ed write.
> 2) The user performs fallocate(2) with mode == PUNCH_HOLE|KEEP_SIZE
>and covering the page.
> 3) Bef
On 08/16/2013 07:30 AM, Maxim Patlasov wrote:
> The patch fixes a race between mmap-ed write and fallocate(PUNCH_HOLE):
>
> 1) An user makes a page dirty via mmap-ed write.
> 2) The user performs fallocate(2) with mode == PUNCH_HOLE|KEEP_SIZE
>and covering the page.
> 3) Before truncate_pagec
08/13/2013 05:23 PM, Brian Foster пишет:
On 08/13/2013 08:56 AM, Maxim Patlasov wrote:
Hi,
08/13/2013 04:05 PM, Brian Foster пишет:
...
@@ -2478,8 +2516,11 @@ static long fuse_file_fallocate(struct file
*file, int mode, loff_t offset,
if (lock_inode) {
mutex_lock(&inode->i_
On 08/13/2013 08:56 AM, Maxim Patlasov wrote:
> Hi,
>
> 08/13/2013 04:05 PM, Brian Foster пишет:
>> ...
>> @@ -2478,8 +2516,11 @@ static long fuse_file_fallocate(struct file
>> *file, int mode, loff_t offset,
>> if (lock_inode) {
>> mutex_lock(&inode->i_mutex);
>> -if (mo
Hi,
08/13/2013 04:05 PM, Brian Foster пишет:
...
@@ -2478,8 +2516,11 @@ static long fuse_file_fallocate(struct file *file, int
mode, loff_t offset,
if (lock_inode) {
mutex_lock(&inode->i_mutex);
- if (mode & FALLOC_FL_PUNCH_HOLE)
- fuse
On 08/12/2013 12:39 PM, Maxim Patlasov wrote:
> The patch fixes a race between mmap-ed write and fallocate(PUNCH_HOLE):
>
> 1) An user makes a page dirty via mmap-ed write.
> 2) The user performs fallocate(2) with mode == PUNCH_HOLE|KEEP_SIZE
>and covering the page.
> 3) Before truncate_pagec
13 matches
Mail list logo