Whamcloud - gitweb
LU-1563 quota: Put lqs properly in quota_pending_commit()
authorNiu Yawei <niu@whamcloud.com>
Tue, 26 Jun 2012 09:35:01 +0000 (02:35 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 3 Jul 2012 20:46:33 +0000 (16:46 -0400)
commit048c04b884999fd9f65c7842955ad0b466c8c99a
tree56be9a1fa7aa09e161092cd4e099eebe5a740f62
parente53e7569dd84e6f99c3cf4ac9a1b072bc68f0425
LU-1563 quota: Put lqs properly in quota_pending_commit()

In quota_pending_commit(), always check if pending > 0 to figure
out if a lqs is held from quota_check_common(), otherwise, we
could find a lqs in quota_pending_commit(), then put it twice.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ia653f41d721c002bbfbebcaf688b9943dde256bf
Reviewed-on: http://review.whamcloud.com/3187
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
lustre/quota/quota_interface.c