Whamcloud - gitweb
b=21776 Use atomic memory allocation when VM is flushing to free memory.
authorIsaac Huang <he.huang@sun.com>
Fri, 2 Jul 2010 21:15:52 +0000 (15:15 -0600)
committerRobert Read <robert.read@oracle.com>
Fri, 2 Jul 2010 21:33:48 +0000 (14:33 -0700)
commite2a2fab993d01597010cb2b44df44a522af0eec8
tree0f295c6aee4a1e54e6cdddfd99416697fc406a60
parentf54613da7e70e59f86d5eb73a9a7ca65884461db
b=21776 Use atomic memory allocation when VM is flushing to free memory.

- Added rq_memalloc flag to RPC and set memory pressure when sending such RPCs
- Set memory pressure flag when osc creates RPC for flushing dirty pages.
- Added msg_vmflush to lnet_msg_t so that LNDs can set memory pressure
  flag when lnd_send called asynchronously. The o2iblnd probably doesn't
  need it as its TX are preallocated and TX pools grown asynchronously.

i=johann
i=dmitry.zoguine
i=maxim.patlasov
15 files changed:
libcfs/include/libcfs/libcfs_prim.h
libcfs/include/libcfs/linux/linux-mem.h
libcfs/libcfs/tracefile.c
lnet/include/lnet/lib-types.h
lnet/klnds/ptllnd/ptllnd_cb.c
lnet/klnds/ptllnd/ptllnd_peer.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/lnet/lib-move.c
lustre/include/liblustre.h
lustre/include/lustre_net.h
lustre/osc/osc_io.c
lustre/osc/osc_page.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/niobuf.c