From: Jan Kara Date: Mon, 28 Jan 2013 14:49:15 +0000 (-0500) Subject: ext4: simplify list handling in ext4_do_flush_completed_IO() X-Git-Tag: v3.9-rc1~64^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002bd7fa3ac7441bdb36df67b2c64bc8c1be5360;p=pandora-kernel.git ext4: simplify list handling in ext4_do_flush_completed_IO() The function splices i_completed_io_list to its private list first. From that moment on we don't need any lock for working with io_end structures because all io_end structure on the list are only our own. So we can remove the other two lists in the function and free io_end immediately after we are done with it. CC: Dmitry Monakhov Signed-off-by: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed