Revert "MRP-1746 mgc: mgc import reconnect race"

This reverts commit 0d62e6f21e03a9e369e9810d23511d7e84c723e7.
LU-3071 obdfilter: call cfs_cap_raise() before journal start

cfs_cap_raise() may allocate memory and result in page flush on
different fs, which could probably try to start a nested
transaction on different journal.

This patch moves cfs_cap_raise() before journal start.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I6583e134c34bc437f1aa05ca9ec922c2d5441d27
MRP-961 kernel: warning at fs/inode.c:1291 generic_detach_inode

Following is the code path which results in the warning,
ldiskfs_mb_release -> iput() -> generic_detach_inode() call path.
...
int generic_detach_inode(struct inode *inode)
{
..
        WARN_ON(inode->i_state & I_NEW);
..
}
Thus the sbi->s_buddy_cache->i_state should be cleared before the call
to iput to overcome this WARN_ON message.

Signed-off-by: Parinay Kondekar <Parinay_Kondekar@xyratex.com>
Change-Id: I4991df44fe1dc39d6fb0c240b1d4e98fcc4aec9c
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>