1
linux/drivers/md/linear.h
NeilBrown 1b6afa1758 md/linear: avoid corrupting structure while waiting for rcu_free to complete.
I don't know what I was thinking putting 'rcu' after a dynamically
sized array!  The array could still be in use when we call rcu_free()
(That is the point) so we mustn't corrupt it.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
2011-08-25 14:43:53 +10:00

22 lines
301 B
C

#ifndef _LINEAR_H
#define _LINEAR_H
struct dev_info {
mdk_rdev_t *rdev;
sector_t end_sector;
};
typedef struct dev_info dev_info_t;
struct linear_private_data
{
struct rcu_head rcu;
sector_t array_sectors;
dev_info_t disks[0];
};
typedef struct linear_private_data linear_conf_t;
#endif