mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
block: get rid of queue-private command filter
The initial patches to support this through sysfs export were broken and have been if 0'ed out in any release. So lets just kill the code and reclaim some space in struct request_queue, if anyone would later like to fixup the sysfs bits, the git history can easily restore the removed bits. Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
7878cba9f0
commit
018e044689
7 changed files with 42 additions and 259 deletions
|
|
@ -210,13 +210,11 @@ static void sg_put_dev(Sg_device *sdp);
|
|||
static int sg_allow_access(struct file *filp, unsigned char *cmd)
|
||||
{
|
||||
struct sg_fd *sfp = (struct sg_fd *)filp->private_data;
|
||||
struct request_queue *q = sfp->parentdp->device->request_queue;
|
||||
|
||||
if (sfp->parentdp->device->type == TYPE_SCANNER)
|
||||
return 0;
|
||||
|
||||
return blk_verify_command(&q->cmd_filter,
|
||||
cmd, filp->f_mode & FMODE_WRITE);
|
||||
return blk_verify_command(cmd, filp->f_mode & FMODE_WRITE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue