(patch) md_make_request error checking

Jeff Garzik (jgarzik@pobox.com)
Thu, 27 Aug 1998 03:45:03 -0400 (EDT)


The *_make_request functions appear to be only used in md-related files.
Checking these, all *_make_request() funcs return zero for all cases.

This patch against 2.1.118 gives us the ability to bail in
the md personality-specific *_make_request funcs (if we want to).

Jeff

*** /work/cvs/linux/drivers/block/ll_rw_blk.c Thu Jul 30 14:17:11 1998
--- ll_rw_blk.c Thu Aug 26 12:10:31 1998
***************
*** 617,623 ****
set_bit(BH_Req, &bh[i]->b_state);
#ifdef CONFIG_BLK_DEV_MD
if (MAJOR(bh[i]->b_dev) == MD_MAJOR) {
! md_make_request(MINOR (bh[i]->b_dev), rw, bh[i]);
continue;
}
#endif
--- 617,628 ----
set_bit(BH_Req, &bh[i]->b_state);
#ifdef CONFIG_BLK_DEV_MD
if (MAJOR(bh[i]->b_dev) == MD_MAJOR) {
! if (md_make_request(MINOR (bh[i]->b_dev),
! rw, bh[i]) < 0) {
! printk (KERN_ERR
! "md_make_request failed\n");
! goto sorry;
! }
continue;
}
#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html