Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2017-01-05 Thread Dan Williams
On Thu, Jan 5, 2017 at 4:03 PM, Dan Williams wrote: > On Thu, Dec 1, 2016 at 12:18 AM, Jan Kara wrote: >> From: Rabin Vincent >> >> If a block device is closed while iterate_bdevs() is handling it, the >> following NULL pointer

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2017-01-05 Thread Dan Williams
On Thu, Dec 1, 2016 at 12:18 AM, Jan Kara wrote: > From: Rabin Vincent > > If a block device is closed while iterate_bdevs() is handling it, the > following NULL pointer dereference occurs because bdev->b_disk is NULL > in bdev_get_queue(), which is called from

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2016-12-01 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html