Re: [PATCH] sd: succeed check_event if device is not removable

2018-01-19 Thread Jinpu Wang
Hi James, Thanks for prompt reply. On Thu, Jan 18, 2018 at 5:32 PM, James Bottomley wrote: > On Thu, 2018-01-18 at 17:22 +0100, Jack Wang wrote: >> From: Jack Wang >> >> The check_events interface was added for check if device changes, >> mainly for device is removable eg. CDROM >> >> In sd_ope

Re: [PATCH] sd: succeed check_event if device is not removable

2018-01-18 Thread James Bottomley
On Thu, 2018-01-18 at 17:22 +0100, Jack Wang wrote: > From: Jack Wang > > The check_events interface was added for check if device changes, > mainly for device is removable eg. CDROM > > In sd_open, it checks if device is removable then check_disk_change. > > when the device is not removable, w

[PATCH] sd: succeed check_event if device is not removable

2018-01-18 Thread Jack Wang
From: Jack Wang The check_events interface was added for check if device changes, mainly for device is removable eg. CDROM In sd_open, it checks if device is removable then check_disk_change. when the device is not removable, we can simple succeeds the call without send TUR. Signed-off-by: Jac