Whamcloud - gitweb
LU-2089 ofd: do not pin pages provided by osd
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Fri, 5 Oct 2012 10:25:44 +0000 (14:25 +0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Oct 2012 03:46:30 +0000 (23:46 -0400)
commita643e3860f5397f904cc3cc937134c3ac841d7db
tree41fd3f9a138df2bc49351dbad8cd5c4ca2c6b9e1
parent2a9056699f3be22b0a51408564fc18ba83f3c12e
LU-2089 ofd: do not pin pages provided by osd

depending on implementation, some pages can be allocated
in order > 0 and kernel does increase refcounter on the
first page only. in this case ptlrpc_free_bulk() calling
cfs_unpin() will try to release such pages leading to
warning and other bad things in the kernel.

instead let ofd/ost to rely on dbo_bufs_get/dbo_bufs_put
as they know details of the pages provided.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I3591e21eef9557d6004d29e63986c7bd5987802b
Reviewed-on: http://review.whamcloud.com/4198
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/ost/ost_handler.c
lustre/ptlrpc/client.c