File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ static inline struct ublk_uring_cmd_pdu *ublk_get_uring_cmd_pdu(
555
555
return (struct ublk_uring_cmd_pdu * )& ioucmd -> pdu ;
556
556
}
557
557
558
- static bool ubq_daemon_is_dying (struct ublk_queue * ubq )
558
+ static inline bool ubq_daemon_is_dying (struct ublk_queue * ubq )
559
559
{
560
560
return ubq -> ubq_daemon -> flags & PF_EXITING ;
561
561
}
@@ -644,8 +644,7 @@ static inline void __ublk_rq_task_work(struct request *req)
644
644
struct ublk_device * ub = ubq -> dev ;
645
645
int tag = req -> tag ;
646
646
struct ublk_io * io = & ubq -> ios [tag ];
647
- bool task_exiting = current != ubq -> ubq_daemon ||
648
- (current -> flags & PF_EXITING );
647
+ bool task_exiting = current != ubq -> ubq_daemon || ubq_daemon_is_dying (ubq );
649
648
unsigned int mapped_bytes ;
650
649
651
650
pr_devel ("%s: complete: op %d, qid %d tag %d io_flags %x addr %llx\n" ,
You can’t perform that action at this time.
0 commit comments