1 May 2008 02:36
Re: [PATCH 3/3] md: add new / required locking for calls to blk_remove_plug and blk_plug_queue
Neil Brown <neilb <at> suse.de>
2008-05-01 00:36:12 GMT
2008-05-01 00:36:12 GMT
On Tuesday April 29, dan.j.williams <at> intel.com wrote: > Now that queue flags are no longer atomic (commit: > 75ad23bc0fcb4f992a5d06982bf0857ab1738e9e) we must protect calls to > blk_remove_plug with spin_lock(q->queue_lock). Can't we just do q->queue_lock = &conf->device_lock and appropriate places in the various ->run functions? It seems to be that we are doing appropriate locking, we just need to convince queue_flag_set / queue_flag_clear that the correct lock is locked. ?? NeilBrown > > Signed-off-by: Dan Williams <dan.j.williams <at> intel.com> > --- > > drivers/md/md.c | 3 +++ > drivers/md/raid1.c | 10 ++++++++-- > drivers/md/raid10.c | 10 ++++++++-- > drivers/md/raid5.c | 12 ++++++++++-- > include/linux/raid/md_k.h | 3 +++ > 5 files changed, 32 insertions(+), 6 deletions(-) > >(Continue reading)





RSS Feed