Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-03-02 Thread NeilBrown
On Thu, 27 Feb 2014 15:32:42 -0800 Andrew Morton wrote: > On Fri, 28 Feb 2014 10:07:57 +1100 NeilBrown wrote: > > > On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton > > wrote: > > > > > On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown wrote: > > > > > > > On Thu, 27 Feb 2014 12:58:07 -0800

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-03-02 Thread NeilBrown
On Thu, 27 Feb 2014 15:32:42 -0800 Andrew Morton a...@linux-foundation.org wrote: On Fri, 28 Feb 2014 10:07:57 +1100 NeilBrown ne...@suse.de wrote: On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton a...@linux-foundation.org wrote: On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Fri, 28 Feb 2014 10:07:57 +1100 NeilBrown wrote: > On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton > wrote: > > > On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown wrote: > > > > > On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton > > > > > > wrote: > > > > > > > On Thu, 27 Feb 2014

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread NeilBrown
On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton wrote: > On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown wrote: > > > On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton > > wrote: > > > > > On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown wrote: > > > > > > > If poll or select is waiting on

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown wrote: > On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton > wrote: > > > On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown wrote: > > > > > If poll or select is waiting on /proc/mdstat when md-mod is unloaded > > > an oops will ensure when the

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread NeilBrown
On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton wrote: > On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown wrote: > > > If poll or select is waiting on /proc/mdstat when md-mod is unloaded > > an oops will ensure when the poll/select completes. > > > > This is because the wait_queue_head which is

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown wrote: > If poll or select is waiting on /proc/mdstat when md-mod is unloaded > an oops will ensure when the poll/select completes. > > This is because the wait_queue_head which is registered with poll_wait() > is local to the module and no longer

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown ne...@suse.de wrote: If poll or select is waiting on /proc/mdstat when md-mod is unloaded an oops will ensure when the poll/select completes. This is because the wait_queue_head which is registered with poll_wait() is local to the module and no

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread NeilBrown
On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton a...@linux-foundation.org wrote: On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown ne...@suse.de wrote: If poll or select is waiting on /proc/mdstat when md-mod is unloaded an oops will ensure when the poll/select completes. This is because

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown ne...@suse.de wrote: On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton a...@linux-foundation.org wrote: On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown ne...@suse.de wrote: If poll or select is waiting on /proc/mdstat when md-mod is unloaded

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread NeilBrown
On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton a...@linux-foundation.org wrote: On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown ne...@suse.de wrote: On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton a...@linux-foundation.org wrote: On Thu, 27 Feb 2014 17:24:45 +1100 NeilBrown

Re: [PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-27 Thread Andrew Morton
On Fri, 28 Feb 2014 10:07:57 +1100 NeilBrown ne...@suse.de wrote: On Thu, 27 Feb 2014 13:51:25 -0800 Andrew Morton a...@linux-foundation.org wrote: On Fri, 28 Feb 2014 08:34:43 +1100 NeilBrown ne...@suse.de wrote: On Thu, 27 Feb 2014 12:58:07 -0800 Andrew Morton

[PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-26 Thread NeilBrown
If poll or select is waiting on /proc/mdstat when md-mod is unloaded an oops will ensure when the poll/select completes. This is because the wait_queue_head which is registered with poll_wait() is local to the module and no longer exists when the poll completes and detaches that wait_queue_head

[PATCH] md / procfs: avoid Oops if md-mod removed while /proc/mdstat is being polled.

2014-02-26 Thread NeilBrown
If poll or select is waiting on /proc/mdstat when md-mod is unloaded an oops will ensure when the poll/select completes. This is because the wait_queue_head which is registered with poll_wait() is local to the module and no longer exists when the poll completes and detaches that wait_queue_head