Whamcloud - gitweb
LU-6527 ext4: journal_commit_callback optimization 11/14611/4
authorSergey Cheremencev <sergey.cheremencev@seagate.com>
Wed, 8 Apr 2015 19:18:07 +0000 (22:18 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Oct 2015 17:39:33 +0000 (17:39 +0000)
commit55afbf5934e145e48a31193de601abd58e605a42
tree8f1951187119c528fb3bf0bcb90ef402e87e5824
parent7f5c9753872cfa8ad47821be3fa924c74c4c8b0d
LU-6527 ext4: journal_commit_callback optimization

Don't take spinlock in tgt_cb_last_committed, if
exp_last_committed was updated with higher trasno.
Also change list_add_tail to list_add. It gives
advantages to ldiskfs in tgt_cb_last_committed.
In the beginning of list will be placed thandles
with the highest transaction numbers. So at the
first iterations we will have the highest transno.
It will save from extra call of
ptlrpc_commit_replies.

Change-Id: Ib6f9cc54dae7d9ac1ca301402299f308b825ede4
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@seagate.com>
Xyratex-bug-id: MRP-2575
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/5907
Tested-by: Jenkins
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-by: Alexander Boyko <alexander.boyko@seagate.com>
Tested-by: Alexander Lezhoev <alexander.lezhoev@seagate.com>
Reviewed-by: Alexey Leonidovich Lyashkov <alexey.lyashkov@seagate.com>
Reviewed-on: http://review.whamcloud.com/14611
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel6.3/ext4-journal-callback.patch
lustre/target/tgt_lastrcvd.c