aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-11-17 21:46:25 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-11-17 21:46:25 -0500
commitf4c8cc652d9f70680dd91be60a7a455040d0a282 (patch)
tree15464ab1cfa63b2e7b7c83006aa09e605aa7099a /fs/ext4
parent08da1193d2c8c7a25d0cef7f85d0b9f1ad7c583a (diff)
ext4: missing unlock in ext4_clear_request_list()
If the the li_request_list was empty then it returned with the lock held. Instead of adding a "goto unlock" I just removed that special case and let it go past the empty list_for_each_safe(). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 61182fe6254..ef09d1443d1 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2799,9 +2799,6 @@ static void ext4_clear_request_list(void)
struct ext4_li_request *elr;
mutex_lock(&ext4_li_info->li_list_mtx);
- if (list_empty(&ext4_li_info->li_request_list))
- return;
-
list_for_each_safe(pos, n, &ext4_li_info->li_request_list) {
elr = list_entry(pos, struct ext4_li_request,
lr_request);