Skip to content
Snippets Groups Projects
  1. Nov 18, 2019
  2. Oct 23, 2019
    • Arnd Bergmann's avatar
      compat_ioctl: move tape handling into drivers · 1207045d
      Arnd Bergmann authored
      
      MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user
      space, and traditionally have been translated in fs/compat_ioctl.c.
      
      To get rid of that translation handler, move a corresponding
      implementation into each of the four drivers implementing those commands.
      
      The interesting part of that is now in a new linux/mtio.h header that
      wraps the existing uapi/linux/mtio.h header and provides an abstraction
      to let drivers handle both cases easily. Using an in_compat_syscall()
      check, the caller does not have to keep track of whether this was
      called through .unlocked_ioctl() or .compat_ioctl().
      
      Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Cc: "Kai Mäkisara" <Kai.Makisara@kolumbus.fi>
      Cc: linux-scsi@vger.kernel.org
      Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      1207045d
  3. Oct 18, 2019
  4. Aug 16, 2019
  5. Jun 19, 2019
  6. Jun 14, 2019
  7. Jun 05, 2019
  8. May 30, 2019
  9. May 24, 2019
  10. May 21, 2019
  11. May 08, 2019
  12. Apr 12, 2019
  13. Apr 08, 2019
    • Will Deacon's avatar
      drivers: Remove explicit invocations of mmiowb() · fb24ea52
      Will Deacon authored
      
      mmiowb() is now implied by spin_unlock() on architectures that require
      it, so there is no reason to call it from driver code. This patch was
      generated using coccinelle:
      
      	@mmiowb@
      	@@
      	- mmiowb();
      
      and invoked as:
      
      $ for d in drivers include/linux/qed sound; do \
      spatch --include-headers --sp-file mmiowb.cocci --dir $d --in-place; done
      
      NOTE: mmiowb() has only ever guaranteed ordering in conjunction with
      spin_unlock(). However, pairing each mmiowb() removal in this patch with
      the corresponding call to spin_unlock() is not at all trivial, so there
      is a small chance that this change may regress any drivers incorrectly
      relying on mmiowb() to order MMIO writes between CPUs using lock-free
      synchronisation. If you've ended up bisecting to this commit, you can
      reintroduce the mmiowb() calls using wmb() instead, which should restore
      the old behaviour on all architectures other than some esoteric ia64
      systems.
      
      Acked-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      fb24ea52
  14. Mar 10, 2019
  15. Jan 31, 2019
    • Jens Axboe's avatar
      ide: ensure atapi sense request aren't preempted · 9a6d5488
      Jens Axboe authored
      
      There's an issue with how sense requests are handled in IDE. If ide-cd
      encounters an error, it queues a sense request. With how IDE request
      handling is done, this is the next request we need to handle. But it's
      impossible to guarantee this, as another request could come in between
      the sense being queued, and ->queue_rq() being run and handling it. If
      that request ALSO fails, then we attempt to doubly queue the single
      sense request we have.
      
      Since we only support one active request at the time, defer request
      processing when a sense request is queued.
      
      Fixes: 60033520 "ide: convert to blk-mq"
      Reported-by: default avatarHe Zhe <zhe.he@windriver.com>
      Tested-by: default avatarHe Zhe <zhe.he@windriver.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      9a6d5488
  16. Jan 22, 2019
  17. Dec 22, 2018
  18. Dec 06, 2018
  19. Dec 03, 2018
  20. Nov 16, 2018
  21. Nov 15, 2018
  22. Nov 13, 2018
  23. Nov 10, 2018
  24. Nov 07, 2018
  25. Sep 28, 2018
  26. Aug 13, 2018
  27. Aug 02, 2018
Loading