linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid1 module is not ready to take IO request
@ 2010-12-15 17:23 Labun, Marcin
  2010-12-15 21:52 ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Labun, Marcin @ 2010-12-15 17:23 UTC (permalink / raw)
  To: neilb@suse.de
  Cc: linux-raid@vger.kernel.org, Hawrylewicz Czarnowski, Przemyslaw

Hi Neil,
We have spotted that when RAID 1 array is assembled and stopped in a loop, there is an occasional kernel oops in raid1 module.
It occurs in make_request function on wait_barrier(conf). In this case mddev->private was NULL, since probably it was not yet initialized in run() function.
The straightforward approach is test for mdadm->private and return bio_endio with an error if private not set.
The question is:
Since raid1 module might receive IO request when it is not ready, what make_request can check for to test if for instance run() function has finished.

Thanks,
Marcin Labun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-16 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15 17:23 raid1 module is not ready to take IO request Labun, Marcin
2010-12-15 21:52 ` Neil Brown
2010-12-16 10:32   ` Hawrylewicz Czarnowski, Przemyslaw
2010-12-16 11:29     ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).