On Thu, Apr 20, 2006 at 11:05:55AM +0800, Zhikun Wang wrote: > Hi: > I want to call genric_make_request in bio->bi_end_io function. But it incurs might_sleep warnings! I wonder this method is safe in the kernel? Thanks a lot! > > > cfq: depth 4 reached, tagging now on > Debug: sleeping function called from invalid context at drivers/block/ll_rw_blk.c:2878 > in_atomic():1, irqs_disabled():0 You can't call generic_make_request() from interrupt context. What are you trying to do? - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html