Whamcloud - gitweb
LU-2150 ost: ost_brw_read() to ptlrpc_free_bulk_nopin()
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Thu, 11 Oct 2012 19:31:19 +0000 (23:31 +0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Oct 2012 01:25:02 +0000 (21:25 -0400)
commit7186c88d389c236f5fe887e3c7f35f2249f8aa86
tree6f4e82972f7e1c8da182f67ae12e1a839a534bcc
parent349de1e30b10ffb8501e6e23dda75963baf8c063
LU-2150 ost: ost_brw_read() to ptlrpc_free_bulk_nopin()

since a643e38 (LU-2089) OST do not pin pages involved in
BULKs: this is done to prevent get/put on the pages which
were allocated as part of order N (>1) allocation with 0
refcounter. get/put on such a page leads to warning from
the kernel. in the original patch one code path was not
fixed, so this patch completes the change.

also, to prevent confusion, the patch removes couple macros:
ptlrpc_free_bulk() and ptlrpc_prep_bulk_page(). so now the
caller should specify whether ptlrpc should reference pages
or not.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I8cf5f334e8f7edab0ad37678e1e8af18904a0be6
Reviewed-on: http://review.whamcloud.com/4256
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_nids.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/client.c
lustre/quota/qsd_request.c