From: Tao Ma Date: Sun, 30 Oct 2011 22:26:08 +0000 (-0400) Subject: ext4: Use correct locking for ext4_end_io_nolock() X-Git-Tag: v3.2-rc1~85^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d73d5046a72467d4510825b99e2269e09ad80e15;p=pandora-kernel.git ext4: Use correct locking for ext4_end_io_nolock() We must hold i_completed_io_lock when manipulating anything on the i_completed_io_list linked list. This includes io->lock, which we were checking in ext4_end_io_nolock(). So move this check to ext4_end_io_work(). This also has the bonus of avoiding extra work if it is already done without needing to take the mutex. Signed-off-by: Tao Ma Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed