]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/jbd/checkpoint.c
spinlock: lockbreak cleanup
[mirror_ubuntu-artful-kernel.git] / fs / jbd / checkpoint.c
index 0f69c416eebc6adef7d05eeaf3283083adb9e700..a5432bbbfb88ab678a63b8cfb55b4d04cf8eae7d 100644 (file)
@@ -347,7 +347,8 @@ restart:
                                break;
                        }
                        retry = __process_buffer(journal, jh, bhs,&batch_count);
-                       if (!retry && lock_need_resched(&journal->j_list_lock)){
+                       if (!retry && (need_resched() ||
+                               spin_needbreak(&journal->j_list_lock))) {
                                spin_unlock(&journal->j_list_lock);
                                retry = 1;
                                break;