summaryrefslogtreecommitdiffstats
path: root/drivers/block/mtip32xx/mtip32xx.h
diff options
context:
space:
mode:
authorAsai Thambi SP2016-02-25 06:16:00 +0100
committerJens Axboe2016-03-03 17:08:43 +0100
commitcfc05bd31384c4898bf2437a4de5557f3cf9803a (patch)
treeb83d6c29a6af0ff6ba4aee7d35aa5ff68aa29d19 /drivers/block/mtip32xx/mtip32xx.h
parentMerge tag 'nbd-for-4.6' of git://git.pengutronix.de/git/mpa/linux-nbd into fo... (diff)
downloadkernel-qcow2-linux-cfc05bd31384c4898bf2437a4de5557f3cf9803a.tar.gz
kernel-qcow2-linux-cfc05bd31384c4898bf2437a4de5557f3cf9803a.tar.xz
kernel-qcow2-linux-cfc05bd31384c4898bf2437a4de5557f3cf9803a.zip
mtip32xx: Fix broken service thread handling
Service thread does not detect the need for taskfile error hanlding. Fixed the flag condition to process taskfile error. Signed-off-by: Selvan Mani <smani@micron.com> Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Cc: stable@vger.kernel.org Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.h')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h
index 3274784008eb..8635239c521f 100644
--- a/drivers/block/mtip32xx/mtip32xx.h
+++ b/drivers/block/mtip32xx/mtip32xx.h
@@ -144,6 +144,11 @@ enum {
MTIP_PF_REBUILD_BIT = 6,
MTIP_PF_SVC_THD_STOP_BIT = 8,
+ MTIP_PF_SVC_THD_WORK = ((1 << MTIP_PF_EH_ACTIVE_BIT) |
+ (1 << MTIP_PF_ISSUE_CMDS_BIT) |
+ (1 << MTIP_PF_REBUILD_BIT) |
+ (1 << MTIP_PF_SVC_THD_STOP_BIT)),
+
/* below are bit numbers in 'dd_flag' defined in driver_data */
MTIP_DDF_SEC_LOCK_BIT = 0,
MTIP_DDF_REMOVE_PENDING_BIT = 1,