From bd415ca2e54b2b305aa4b3a9bec2bf67c3bedcbf Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 17 May 2002 22:03:08 -0700 Subject: [PATCH] Change MD Superblock IO to go straight to submit_bio The current code hits the page cache for the block device which requires memory allocation which can sometimes cause a deadlock (if it blocks the raid5d thread). This code takes the page that holds the superblock, and passes it to submit_bh in a suitable bio wrapper. --- include/linux/raid/md_k.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/linux/raid') diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 997d45fa7be7..62024cab73f2 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h @@ -169,8 +169,9 @@ struct mdk_rdev_s struct block_device *bdev; /* block device handle */ - mdp_super_t *sb; - unsigned long sb_offset; + struct page *sb_page; + mdp_super_t *sb; + unsigned long sb_offset; int alias_device; /* device alias to the same disk */ int faulty; /* if faulty do not issue IO requests */ -- cgit v1.2.3