Files
linux-st/include/linux
Trond Myklebust 1ae88b2e44 NFS: Fix an O_DIRECT Oops...
We can't call nfs_readdata_release()/nfs_writedata_release() without
first initialising and referencing args.context. Doing so inside
nfs_direct_read_schedule_segment()/nfs_direct_write_schedule_segment()
causes an Oops.

We should rather be calling nfs_readdata_free()/nfs_writedata_free() in
those cases.

Looking at the O_DIRECT code, the "struct nfs_direct_req" is already
referencing the nfs_open_context for us. Since the readdata and writedata
structures carry a reference to that, we can simplify things by getting rid
of the extra nfs_open_context references, so that we can replace all
instances of nfs_readdata_release()/nfs_writedata_release().

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-08-12 08:21:39 -07:00
..
2009-06-30 18:56:00 -07:00
2009-07-12 12:22:34 -07:00
2009-06-30 18:55:58 -07:00
2009-07-29 19:10:35 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 13:02:10 -07:00
2009-07-08 09:18:05 -07:00
2009-06-30 18:56:00 -07:00
2009-08-07 14:38:29 -03:00
2009-06-30 20:12:24 +02:00
2009-07-12 12:22:34 -07:00
2009-06-29 08:59:10 +10:00
2009-07-31 08:55:48 +02:00
2009-07-30 16:03:45 +09:30
2009-07-28 21:07:09 -04:00
2009-07-08 09:31:56 -07:00
2009-08-12 08:21:39 -07:00
2009-06-29 12:14:51 -07:00
2009-06-30 18:55:59 -07:00
2009-07-29 19:10:36 -07:00
2009-07-12 12:22:34 -07:00
2009-07-06 13:57:03 -07:00
2009-07-12 15:16:39 -07:00