ide: fix races in handling of user-space SET XFER commands
* Make cmd->tf_flags field 'u16' and add IDE_TFLAG_SET_XFER taskfile flag. * Update ide_finish_cmd() to set xfer / re-read id if the new flag is set. * Convert set_xfer_rate() (write handler for /proc/ide/hd?/current_speed) and ide_cmd_ioctl() (HDIO_DRIVE_CMD ioctl handler) to use the new flag. * Remove no longer needed disable_irq_nosync() + enable_irq() from ide_config_drive_speed(). Signed-off-by:Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/ide/ide-ioctls.c 2 additions, 6 deletionsdrivers/ide/ide-ioctls.c
- drivers/ide/ide-iops.c 0 additions, 10 deletionsdrivers/ide/ide-iops.c
- drivers/ide/ide-proc.c 2 additions, 8 deletionsdrivers/ide/ide-proc.c
- drivers/ide/ide-taskfile.c 8 additions, 1 deletiondrivers/ide/ide-taskfile.c
- include/linux/ide.h 2 additions, 1 deletioninclude/linux/ide.h
Loading
Please register or sign in to comment