configure: add CAS_BLK_BIDI_RQ() macro

Since commit 8b3238cabd50e27 in linux kernel removed blk_bidi_rq() marco, it
has to be wrapped in CAS `configure` script

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2020-08-25 06:53:32 -04:00
parent 9283601d84
commit 8b64206570
2 changed files with 34 additions and 3 deletions

View File

@@ -22,10 +22,8 @@ static inline bool _blockdev_can_handle_rq(struct request *rq)
if (unlikely(!cas_is_rq_type_fs(rq)))
error = __LINE__;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
if (unlikely(blk_bidi_rq(rq)))
if (unlikely(CAS_BLK_BIDI_RQ(rq)))
error = __LINE__;
#endif
if (error != 0) {
CAS_PRINT_RL(KERN_ERR "%s cannot handle request (ERROR %d)\n",