*参照元 [#u7a0be20] #backlinks *説明 [#x01a3452] -パス: [[linux-2.6.25/block/blk-core.c]] -これは何? --説明 **引数 [#fe605687] -struct request_queue *q -- --[[linux-2.6.25/request_queue]] **返り値 [#z351208b] -なし **参考 [#fabdf62f] *実装 [#da89204a] /* * "plug" the device if there are no outstanding requests: this will * force the transfer to start only after we have put all the requests * on the list. * * This is called with interrupts off and no requests on the queue and * with the queue lock held. */ void blk_plug_device(struct request_queue *q) { WARN_ON(!irqs_disabled()); /* * don't plug a stopped queue, it must be paired with blk_start_queue() * which will restart the queueing */ if (blk_queue_stopped(q)) return; if (!test_and_set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags)) { mod_timer(&q->unplug_timer, jiffies + q->unplug_delay); blk_add_trace_generic(q, NULL, 0, BLK_TA_PLUG); } } EXPORT_SYMBOL(blk_plug_device); *コメント [#re3ab108] #comment