spin_lock(&bitmap->write_lock); bitmap->writes_pending = 0; /* make sure waiters continue */ 
static void drain_write_queues(struct bitmap *bitmap){	struct list_head *queues[] = { 	&bitmap->complete_pages, NULL };	struct list_head *head;	struct page_list *item;	int i;	for (i = 0; queues[i]; i++) {		head = queues[i];		while ((item = dequeue_page(bitmap, head))) {			page_cache_release(item->page);			mempool_free(item, bitmap->write_pool);		}	}	spin_lock(&bitmap->write_lock);	bitmap->writes_pending = 0; /* make sure waiters continue */	wake_up(&bitmap->write_wait);	spin_unlock(&bitmap->write_lock);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/77ad4bc706fe6c52ab953f31c287a6af712d080c/bitmap.c/buggy/drivers/md/bitmap.c