Nick Piggin <[email protected]> wrote: > No, you shouldn't. We could theoretically introduce a new API for this, > but I think it would be preferable if you can fix the race in the fs. Actually, I might be able to do better. When making a StoreData call to the AFS server, I send all the parameters first, and at that point, the server will abort it, I think, if permission is not available, and won't wait for the payload to be delivered. So if I tell AF_RXRPC to send the parameter data with an explicit ACK request and then wait till it's either hard-ACK'd or aborted, I should then be able to deal with the permissions failure at a state where I have locked *all* the pages to be sent. At that point, I should be able to tell truncate to simple discard all these locked pages. How's that sound? David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- References:
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: Nick Piggin <[email protected]>
- [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- Prev by Date: Re: [PATCH 1/5][TAKE3] fallocate() implementation on i86, x86_64 and powerpc
- Next by Date: This kernel requires the following features not present on the CPU... (on a VIA C7 CPU)
- Previous by thread: Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- Next by thread: Re: [PATCH] AFS: Implement shared-writable mmap [try #2]
- Index(es):