]> git.karo-electronics.de Git - linux-beck.git/commit
cifs: add refcounting to cifs_readdata structures
authorJeff Layton <jlayton@redhat.com>
Wed, 16 May 2012 11:13:17 +0000 (07:13 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 17 May 2012 01:13:30 +0000 (20:13 -0500)
commit6993f74a5bf836210e7f253d5ad3f76d73a95f51
tree6b0cf7d6aed03e9d7d0b705cf7ba79792ab062a2
parent8d5ce4d23c79e0f9861b19fc534f5b2dc636f79c
cifs: add refcounting to cifs_readdata structures

This isn't strictly necessary for the async readpages code, but the
uncached version will need to be able to collect the replies after
issuing the calls. Add a kref to cifs_readdata and use change the
code to take and put references appropriately.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/file.c