Commit f24fe98d authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'md/4.3-rc4-fix' of git://neil.brown.name/md

Pull md bugfix from Neil Brown:
 "One bug fix for raid1/raid10.

  Very careless bug earler in 4.3-rc, now fixed :-)"

* tag 'md/4.3-rc4-fix' of git://neil.brown.name/md:
  crash in md-raid1 and md-raid10 due to incorrect list manipulation
parents 4a06c8ac a452744b
...@@ -2382,8 +2382,8 @@ static void raid1d(struct md_thread *thread) ...@@ -2382,8 +2382,8 @@ static void raid1d(struct md_thread *thread)
} }
spin_unlock_irqrestore(&conf->device_lock, flags); spin_unlock_irqrestore(&conf->device_lock, flags);
while (!list_empty(&tmp)) { while (!list_empty(&tmp)) {
r1_bio = list_first_entry(&conf->bio_end_io_list, r1_bio = list_first_entry(&tmp, struct r1bio,
struct r1bio, retry_list); retry_list);
list_del(&r1_bio->retry_list); list_del(&r1_bio->retry_list);
raid_end_bio_io(r1_bio); raid_end_bio_io(r1_bio);
} }
......
...@@ -2688,8 +2688,8 @@ static void raid10d(struct md_thread *thread) ...@@ -2688,8 +2688,8 @@ static void raid10d(struct md_thread *thread)
} }
spin_unlock_irqrestore(&conf->device_lock, flags); spin_unlock_irqrestore(&conf->device_lock, flags);
while (!list_empty(&tmp)) { while (!list_empty(&tmp)) {
r10_bio = list_first_entry(&conf->bio_end_io_list, r10_bio = list_first_entry(&tmp, struct r10bio,
struct r10bio, retry_list); retry_list);
list_del(&r10_bio->retry_list); list_del(&r10_bio->retry_list);
raid_end_bio_io(r10_bio); raid_end_bio_io(r10_bio);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment