Re: [PATCH] Bsg referencing parent device

2018-05-18 Thread Christoph Hellwig
The idea looks pretty reasonable, but once that is done we can get rid of the ->release callback entirely and just handle it in the callers. Something like the untested patch below: diff --git a/block/bsg-lib.c b/block/bsg-lib.c index fc2e5ff2c4b9..9419def8c017 100644 --- a/block/bsg-lib.c +++ b/b

[PATCH] Bsg referencing parent device

2018-05-16 Thread Anatoliy Glagolev
00:00:00 2001 From: Anatoliy Glagolev Date: Wed, 16 May 2018 17:03:09 -0600 Subject: [PATCH] Bsg referencing parent device Signed-off-by: Anatoliy Glagolev Bsg holding reference to a parent device may result in a crash if user closes a bsg file handle after the parent device driver has unload