LU-2145 target: move target code to the separate directory Create target/ directory for unified target code and move there already existed code from ptlrpc/target.c Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Change-Id: Id808ed3eb390dd051cbca0a3ef2bf02e5f5d722f Reviewed-on: http://review.whamcloud.com/4258 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
LU-1095 ptlrpc: improve ptlrpc debug message consistency Enforce the following conventions for better consistency in a few ptlrpc/target.c debug messages. - Print each message on a single line for better grep results. - Provide a distinctive message for different functions to reduce appearance of redundancy. - Print device name at the start, otherwise on systems with many targets it isn't easy to tell which one was involved. - Print rc at the end. Signed-off-by: Ned Bass <bass6@llnl.gov> Change-Id: Ibd203367dde4d95d32671217271420c57a8dc0ad Reviewed-on: http://review.whamcloud.com/3547 Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1789 protocol: add support for lightweight connection A lightweight connection has the following uncommon properties: - no entry is added to last_rcvd file, so no recovery is possible - a lightweight connection can be set up while the target is in recovery, therefore it should be used use caution - locks can still be acquired through this connection, although they won't be replayed. We might also consider disabling pings in the future. Signed-off-by: Johann Lombardi <johann@whamcloud.com> Change-Id: I2b2d1a28d0fd4ca278806cab6103f96fbd88a07d Reviewed-on: http://review.whamcloud.com/3925 Reviewed-by: Niu Yawei <niu@whamcloud.com> Tested-by: Hudson Reviewed-by: wangdi <di.wang@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1235 osd: debug patch for transaction commit callback During transaction commit phase, osd_trans_commit_cb accesses an invalid memeroy, this patch insert some assertions to find out the possible faulty point. Signed-off-by: Bobi Jam <bobijam@whamcloud.com> Change-Id: Idb39a6946fbd5d8a96ee6915f828f557ccebadb6 Reviewed-on: http://review.whamcloud.com/2394 Tested-by: Hudson Reviewed-by: Mike Pershin <tappro@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Liang Zhen <liang@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1235 osd: delete commit cb entry list first delte commit cb entry list before calling the commit callback functions. Signed-off-by: Bobi Jam <bobijam@whamcloud.com> Change-Id: I183d31e09666626724f5adcbd977670d558ae219 Reviewed-on: http://review.whamcloud.com/2791 Reviewed-by: Mike Pershin <tappro@whamcloud.com> Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com> Reviewed-by: hongchao.zhang <hongchao.zhang@whamcloud.com> Tested-by: hongchao.zhang <hongchao.zhang@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-911 lut: few more methods from orion are taken target.c is updated from orion: - has own environment key now - int lut_client_del - int lut_client_add - int lut_client_new MDT related code is cleaned up Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com> Change-Id: I07a5f1f11286004ec957587fdf16fcd5a4dd073f Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1849 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1347 build: remove the vim/emacs modelines Delete all of the vim/emacs modelines. Add copyright information for a few files. Signed-off-by: Liang Zhen <liang@whamcloud.com> Change-Id: Ic22ce8d8cc7786ffdb19937eb9f93a2d49aa2581 Reviewed-on: http://review.whamcloud.com/2658 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-911 obdclass: new context tags for future use - Add new thread tags: local, mgs and osp - use LCT_LOCAL to avoid extra keys allocation when just local server update is needed. - target_recovery_thread() is capable to serve OFD. Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com> Change-Id: Ic41673c91b8d519c95a8740c418070f9e14aa3a6 Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1851 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1146 build: batch update copyright messages Update copyright messages for all files modified by Whamcloud. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I9654b780c6e4726d369e2a893f7e210d4078819b Reviewed-on: http://review.whamcloud.com/2242 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-909 osd: changes to osd api the main purpose of the patch is to get declare methods in the API and to teach osd-based devices to use that - new declaration methods for each changing method - explicit destroy method: ->do_ref_del() never destroy object - methods to access data in 0-copy manner: no actual implementation in this patch - mdd/fld use new methods to create/declare/start transactions - specific method to change/access version are removed: use xattr methods - ldiskfs osd tracks all declarations and asserts if caller is trying to call changing method w/o proper declaration Change-Id: I473c0c2950c1920abb2fef1dac465c08f35522ea Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com> Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1669 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-795 osd api: Commit callback per transaction - ability to add commit callback per transaction in addition to per-device hooks. Now it is much simpler if only commit callback is needed. - rewrite commit callbacks for last_commit and new_client, add commit callback in seq manager - cleanup not-needed code: old commit callbacks, txn_keys - remove osd od_env_for_commit environment and env param from commit callbacks - use th_sync to mark sync operations Change-Id: If5f8f2a6d3cd2f3e77fd13c802213a181043a2d7 Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1621 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-462 Don't alloc/free client data for self export Self export doesn't need client data and ldlm initialization. Patch uses uuid comparision to determine self_export. Change-Id: Id26ef90e9857e4c1d3a0e7a3756eaf67607890d6 Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1574 Tested-by: Hudson Reviewed-by: Jinshan Xiong <jay@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
Revert "LU-462 Don't alloc/free client data for self export" This introduced a memory leak problem This reverts commit 140178844e5c0e4f3cfed8199800e39bf7082cd9 Change-Id: I558da8c44e08f77e77f7d1fe79da892a579992c3 Reviewed-on: http://review.whamcloud.com/1631 Reviewed-by: Oleg Drokin <green@whamcloud.com> Tested-by: Oleg Drokin <green@whamcloud.com>
LU-462 Don't alloc/free client data for self export Self export doesn't need client data and ldlm initialization. Change-Id: I31307d2212e3d11c79f1ab215edbb840c3cfb8c6 Signed-off-by: Mikhail Pershin <tappro@whamcloud.com> Reviewed-on: http://review.whamcloud.com/1023 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
b=22407 substitute %i with %d i=alex Common in-kernel code should use %d intstead of %i in print format strings because solaris native prims (like cmn_err()) don't support %i.
b=17760 Separate locking for obd bitfield and recovery i=adilger i=zam
b=15936 minor fixes noted in inspection i=adilger,zam Use single place for mount count, unify mntdev getting, introduce obt_magic to make sure obt is correct.
Update copyrights on source files changed since 2010-02-15.
b=22828 fix unnormalized Linux symbols introduced by patches of the bug 21485 i=robert.read
b=21485 allocate lcd inside obd_init_export() i=rread i=zam