No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter 29cadd2bb6 scsi: Fix a harmless double shift bug
Smatch generates a warning:

    drivers/scsi/scsi_lib.c:1656 scsi_mq_done() warn: test_bit() takes a bit number

The problem is that SCMD_STATE_COMPLETE is supposed to be bit number 0
and not a mask like "(1 << 0)".  It is used like this:

        if (test_and_set_bit(SCMD_STATE_COMPLETE, &scmd->state))

The test_and_set_bit() has a shift built in so it's a double left shift
and uses bit number 1 instead of number 0.  This bug is harmless because
it's done consistently and it doesn't clash with any other flags.

Fixes: f1342709d1 ("scsi: Do not rely on blk-mq for double completions")
Reviewed-by: Keith Busch <keith.busch@intel.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-12-07 22:27:01 -07:00
arch
block blk-mq: re-build queue map in case of kdump kernel 2018-12-07 22:26:38 -07:00
certs
crypto
Documentation blkcg: associate writeback bios with a blkg 2018-12-07 22:26:37 -07:00
drivers nvme: remove unused function nvme_ctrl_ready 2018-12-07 22:26:58 -07:00
firmware
fs blkcg: associate writeback bios with a blkg 2018-12-07 22:26:37 -07:00
include scsi: Fix a harmless double shift bug 2018-12-07 22:27:01 -07:00
init Linux 4.20-rc5 2018-12-04 09:38:05 -07:00
ipc
kernel blkcg: remove additional reference to the css 2018-12-07 22:26:37 -07:00
lib Linux 4.20-rc5 2018-12-04 09:38:05 -07:00
LICENSES
mm blkcg: associate a blkg for pages being evicted by swap 2018-12-07 22:26:37 -07:00
net
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.