Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-19 Thread fengwei.yin
On 2016/3/16 19:48, Jon Hunter wrote: On 15/03/16 23:44, fengwei.yin wrote: On 2016/3/15 22:31, Christoph Hellwig wrote: On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole

Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-19 Thread fengwei.yin
On 2016/3/16 19:48, Jon Hunter wrote: On 15/03/16 23:44, fengwei.yin wrote: On 2016/3/15 22:31, Christoph Hellwig wrote: On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block device checking

Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread fengwei.yin
On 2016/3/15 22:31, Christoph Hellwig wrote: On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block device checking for MMC_IOC_CMD while the old code has no such check. It

Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread fengwei.yin
On 2016/3/15 22:31, Christoph Hellwig wrote: On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block device checking for MMC_IOC_CMD while the old code has no such check. It breaks some ioctl call

Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread Christoph Hellwig
On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: > From: Fengwei Yin > > a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block > device checking for MMC_IOC_CMD while the old code has no such check. > > It breaks some ioctl call like BLKROSET

Re: [PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread Christoph Hellwig
On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: > From: Fengwei Yin > > a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block > device checking for MMC_IOC_CMD while the old code has no such check. > > It breaks some ioctl call like BLKROSET from user space. An

[PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread Yin, Fengwei
From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block device checking for MMC_IOC_CMD while the old code has no such check. It breaks some ioctl call like BLKROSET from user space. An example is "adb remount" cmd. It prints out following

[PATCH] mmc: block: remove the check for whole block device for ioctl.

2016-03-15 Thread Yin, Fengwei
From: Fengwei Yin a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block device checking for MMC_IOC_CMD while the old code has no such check. It breaks some ioctl call like BLKROSET from user space. An example is "adb remount" cmd. It prints out following error message: "remount