linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] Make blk_cleanup_queue() finish after request_fn
@ 2012-09-23 16:16 Bart Van Assche
  2012-09-23 16:17 ` [PATCH 1/2] block: Rename queue dead flag Bart Van Assche
  2012-09-23 16:20 ` [PATCH 2/2] Make blk_cleanup_queue() wait until request_fn finished Bart Van Assche
  0 siblings, 2 replies; 5+ messages in thread
From: Bart Van Assche @ 2012-09-23 16:16 UTC (permalink / raw)
  To: linux-scsi, Chanho Min, Mike Christie, Jens Axboe, Tejun Heo

Request processing functions like scsi_request_fn() that unlock the
queue lock internally may cause blk_cleanup_queue() to finish while
the request_fn is in progress. This two-patch series makes sure that
blk_cleanup_queue() can't finish before all active request_fn calls
have finished.

Changes compared to v1:
- Included a patch to rename QUEUE_FLAG_DEAD.
- Refined the descriptions of the __blk_run_queue_uncond() and
  blk_cleanup_queue() functions.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-24 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-23 16:16 [PATCH 0/2 v2] Make blk_cleanup_queue() finish after request_fn Bart Van Assche
2012-09-23 16:17 ` [PATCH 1/2] block: Rename queue dead flag Bart Van Assche
2012-09-24 19:27   ` Tejun Heo
2012-09-23 16:20 ` [PATCH 2/2] Make blk_cleanup_queue() wait until request_fn finished Bart Van Assche
2012-09-24 19:32   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).